0
我正在运行ubuntu 16.我安装了python 2.7和3.5。我想为python3安装cx_freeze
最新版本。我从他们的网站上下载了该软件包,但无法运行setup.py
文件,因为它总是给我错误。另外我已经安装了pip3,但它仍然不适合我。所有在线答案都是针对老版本的cx_freeze
,因此新版本的答案会有所帮助。使用Python 3.5.2安装cx_Freeze 5.0.2
我安装和升级PIP 3:
sudo -H install --upgrade pip
然后我尝试使用安装cx_freeze:
pip3 install cx_Freeze .
然后我得到了以下错误:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ngco46uq/cx-Freeze/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q3n3cd2r-record/install-record.txt --single-version-externally-managed --compile"
failed with error code 1 in /tmp/pip-build-ngco46uq/cx-Freeze/
也谁都可以告诉我任何其他方法来做到这一点?
的替代品,我不知道,如果错误有什么用PIP版本,但由于你提到它,这里是我的2分钱,关于你如何升级pip:通常你需要通过运行'pip install --upgrade pip'通过pip本身升级它,所以你可能想尝试。另外,假设你的方法确实更新了点子,我不确定你是否更新了点子2或点子3。 '哪个pip'返回什么?我会尝试'PIP3安装 - 升级PIP3' – jorgeh