【发布时间】:2020-12-14 14:32:35
【问题描述】:
我需要python3.6来安装tensorflow,所以我下载了python3.6.12.tar。我发现我应该 pip install tarfile。但是,在这种情况下,它是旧版本的 python。仅供参考,在我的电脑(笔记本电脑)中,我安装了 python3.9。 我的问题是:我可以在 virtualenv 中 pip install python.tar 吗?
【问题讨论】:
-
不,你不能用
pip安装Python。 -
我现在正在尝试“setup.py install”,但它给了我一些错误...
-
回溯(最近一次调用最后):文件“blahblahblah\Python36\setup.py”,第 29 行,在
set_compiler_flags('CFLAGS', 'PY_CFLAGS_NODIST') 文件“blahblahblah\Python36\ setup.py”,第 27 行,在 set_compiler_flags sysconfig.get_config_vars()[compiler_flags] = flags + ' ' + py_flags_nodist TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
标签: python python-3.x virtualenv python-3.6 python-install