安装python模块时出错

安装python模块时出错

本文介绍了安装python模块时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用标准的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模块时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-18 20:46