安装基本Python模块

2024-04-20 10:14:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我首先下载了python3.3,目的是添加xlrd和xlwt来与excel一起使用。我无法安装easy_installdistribute,或以上任何一种。在

这是下载distribute、提取它并从IDLE运行distribute_setup.py之后收到的错误消息:

Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz
Extracting in c:\users\t\appdata\local\temp\tmpecnfj9
Now working in c:\users\t\appdata\local\temp\tmpecnfj9\distribute-0.6.49
Installing Distribute
Something went wrong during the installation.
See the error message above.
Traceback (most recent call last):
  File "C:\Python33\Lib\site-packages\distribute-0.6.49\distribute_setup.py", line 556, in <module>
    sys.exit(main())
SystemExit: 2 

总的来说,我无法安装和使用任何模块。我想我错过了一个非常基本的步骤。在


Tags: theinpy目的packageslocalsetupexcel
2条回答

在Python3.3中,setuptools替换了distribute。下载并安装setuptools,您应该可以开始了。在安装setuptools之后,您可能还需要考虑安装pip。按照^{}和{a2}在^{}中的说明操作。在

在下载了.msi格式的Python源文件的驱动器中安装Python,或者您可以更改该源文件的驱动器,然后尝试安装它。只是一个简单的安装过程,没有什么典型的。在

相关问题 更多 >