在OS X上没有名为setuptools的模块 [英] No module named setuptools on OS X

查看:72
本文介绍了在OS X上没有名为setuptools的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装自动自我控制,但始终收到消息:无模块命名setuptools".

我正在寻找解决方案,并最终通过t 他的指南.

我通过以下命令检查setuptools的最新版本:

  python3 -m pip install --upgrade pip setuptools滚轮 

它表明它已经具有最新版本.但是,当我尝试运行setup.py

时,仍然收到消息没有名为setuptools的模块".

有什么我可以解决的吗?

解决方案

在使用 brew install 安装软件包时遇到了同样的问题.我检查了我是否在/usr/local/Cellar/中安装了两个版本的python.我使用 brew uninstall python3 卸载python,然后再次重新安装.但是,我认为只需删除一个版本就可以.

如果已安装Python2,请在此处

I tried to install Auto-Selfcontrol but keep getting the message:"No module named setuptools".

I'm searching around for solutions and end up install setuptools with this guide.

I check the lastest version of setuptools by command:

python3 -m pip install --upgrade pip setuptools wheel

And it shows that it's already had the lastest version. However, I'm still getting the message "No module named setuptools" when I try to run setup.py

Is there anything I can do to fix that?

解决方案

I was getting same issue while installing the package using brew install. I checked I had two version of python installed at /usr/local/Cellar/. I uninstall python with brew uninstall python3 and reinstall it again. However, I think just removing one version should work.

if you have Python2 installed, refer to this suggestion here

这篇关于在OS X上没有名为setuptools的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆