我的ubuntu是15.04,我使用$ pip install xonsh
并且我安装了python-ply但是这个错误仍然存在
Downloading/unpacking xonsh
Downloading xonsh-0.2.3.tar.gz (135kB): 135kB downloaded
Running setup.py (path:/tmp/pip-build-A_8MA8/xonsh/setup.py) egg_info for package xonsh
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-A_8MA8/xonsh/setup.py", line 8, in <module>
from tempfile import TemporaryDirectory
ImportError: cannot import name TemporaryDirectory
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip-build-A_8MA8/xonsh/setup.py", line 8, in <module>
from tempfile import TemporaryDirectory
ImportError: cannot import name TemporaryDirectory
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-A_8MA8/xonsh
Storing debug log for failure in /home/altiano/.pip/pip.log
这是什么?我该如何解决?
答案 0 :(得分:0)
xonsh不支持Python 2(尚)
我从classifiers=['Programming Language :: Python :: 3']
获得了setup.py
要安装它,你需要Python3。
运行这个:
sudo apt-get install python3-pip
sudo pip3 install xonsh