python3 setup.py install_安装Twisted执行python3 setup.py install报错

源自:2-1 scrapy的安装、和安装中遇到的问题

安装Twisted执行python3 setup.py install报错

[bigdata@elephant Twisted-17.1.0]$ python3 setup.py install

Traceback (most recent call last):

File "/usr/local/lib/python3.4/site-packages/setuptools/dist.py", line 353, in fetch_build_egg

cmd = self._egg_fetcher

AttributeError: 'Distribution' object has no attribute '_egg_fetcher'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "setup.py", line 21, in

setuptools.setup(**_setup["getSetupArgs"]())

File "/usr/local/lib/python3.4/distutils/core.py", line 108, in setup

_setup_distribution = dist = klass(attrs)

File "/usr/local/lib/python3.4/site-packages/setuptools/dist.py", line 269, in __init__

self.fetch_build_eggs(attrs['setup_requires'])

File "/usr/local/lib/python3.4/site-packages/setuptools/dist.py", line 313, in fetch_build_eggs

replace_conflicting=True,

File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 826, in resolve

dist = best[req.key] = env.best_match(req, ws, installer)

File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1092, in best_match

return self.obtain(req, installer)

File "/usr/local/lib/python3.4/site-packages/pkg_resources/__init__.py", line 1104, in obtain

return installer(requirement)

File "/usr/local/lib/python3.4/site-packages/setuptools/dist.py", line 372, in fetch_build_egg

install_dir = self.get_egg_cache_dir()

File "/usr/local/lib/python3.4/site-packages/setuptools/dist.py", line 337, in get_egg_cache_dir

os.mkdir(egg_cache_dir)

PermissionError: [Errno 13] Permission denied: './.eggs'

提问者:錳鈊4062105

2018-07-14 19:49

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值