无法在Mac

时间:2017-04-19 06:32:46

标签: python macos twisted

尝试在我的计算机上安装Twisted(macOS Sierra 10.12.2)。 Python版本是2.7.10。

我尝试像这样pip install Twisted从pip安装,但失败了,错误

  

IOError:[Errno 63]文件名太长:' /tmp/easy_install-8eVovT/Twisted-17.1.0/temp/easy_install-u0u1h9/Twisted-17.1.0/temp/easy_install-5iVHg5/Twisted -17.1.0 /温度/ easy_install的-UZwSl2 /扭17.1.0 /温度/ easy_install的-9nRMC3 /扭17.1.0 /温度/ easy_install的-1bP8j6 /扭17.1.0 /温度/ easy_install的-E8B9b_ /扭17.1 0.0 /温度/ easy_install的-5zegl0 /扭17.1.0 /温度/ easy_install的-47Gzfa /扭17.1.0 /温度/ easy_install的-rvfOEw /扭17.1.0 /温度/ easy_install的-c08BDr /扭17.1.0 /temp/easy_install-ZAyj8l/Twisted-17.1.0/temp/easy_install-w3QowO/Twisted-17.1.0/temp/easy_install-DoydBb/Twisted-17.1.0/temp/easy_install-SsMoHm/Twisted-17.1.0/temp /easy_install-_ZTPwM/Twisted-17.1.0/temp/easy_install-opozZc/Twisted-17.1.0/temp/easy_install-xY7XU8/Twisted-17.1.0/temp/easy_install-1J5k5e/Twisted-17.1.0/temp/easy_install -9SlyRn /双绞线17.1.0 /温度/ easy_install的-87hrjt /扭17.1.0 /温度/ easy_install的-20CF7n /扭17.1.0 /温度/ easy_install的-cxyH6n /扭17.1.0 /文档/型芯/例子/ threadedselec吨/可可/ SimpleWebClient / English.lproj / MainMenu.nib中/ keyedobjects.nib

然后我从http://twistedmatrix.com/trac/wiki/Downloads下载源代码。

运行命令python setup.py install,我收到了同样的错误消息。

我该怎么做才能解决这个问题?

1 个答案:

答案 0 :(得分:1)

我尝试在macOS Sierra上使用Twisted 15.5.0,它可以工作! https://github.com/twisted/twisted/archive/twisted-15.5.0.zip

我也试过16.x.x和17.x.x,错误是一样的。

相关问题