为了账号安全,请及时绑定邮箱和手机立即绑定

安装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 <module>
    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'

正在回答

2 回答

看最后一句

0 回复 有任何疑惑可以回复我~

权限问题 sudo试试

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信