问题描述
我正在尝试使用标准的python setup.py install
安装python模块,但出现以下错误.我对python相当陌生,但过去我已经能够以这种方式安装其他模块.我印象中这个模块setuptools
不是我应该与python安装分开的东西.我需要在特定目录中吗?
I am trying to install a python module with the standard python setup.py install
but I get the following error. I am fairly new to python but I have been able to install other modules in this way in the past. I am under the impression this module setuptools
is not something I am supposed to have gotten separate from my python installation. Do I need to be in a specific directory or something?
Error:
Traceback (most recent call last):
File "setup.py", line 3 in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
推荐答案
显然,该软件包需要您使用setuptools进行安装. Setuptools是一个模块,可轻松安装Python软件包.您可以在pypi上获取它,此处.
Apparently, that package requires you to have setuptools to install it. Setuptools is a module that provides easy installation of Python packages. You can get it on pypi, here.
这篇关于安装python模块时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!