如何在Windows上安装.egg Python软件包(尝试使用easy_install无效) [英] How can I install a .egg Python package on Windows (attempt using easy_install not working)
问题描述
我正在为我正在做的课程安装名为QSTK的软件包.该课程指向32位版本的安装包,但是我安装了64位Python.我在 Python包索引上找到了一个.egg文件. >
似乎有一个32位的exe,但是只有.egg的64位.我下载了QSTK-0.2.6-py2.7.egg版本,到目前为止一直尝试安装失败.
这是我尝试过的:
-
使用简单安装(来自C:\ Python27 \ Lib \ site-packages 目录):
Python easy_install -Z C:\Users\Prosserc\Downloads\QSTK-0.2.6-py2.7.egg
这在我的目录中创建了一个QSTK-0.2.6-py2.7.egg目录 我可以打开并在其中找到文件的site-packages目录.但是, 我试图从python shell导入QSTK并获得通常的 未命名模块..."导入错误.
-
我正在寻找一个setup.py文件,因为我已使用这些文件进行安装 包之前,但找不到一个.
-
我还查看了解决方案
我终于找到了另一个可以使用有效软件包下载它的地方:Python packages index.
It seems to have an exe for 32 bit, but just the .egg for 64 bit. I downloaded the QSTK-0.2.6-py2.7.egg version and have been trying to install this unsucessfully so far.
Here is what I have tried:
Using easy install (from the C:\Python27\Lib\site-packages directory):
Python easy_install -Z C:\Users\Prosserc\Downloads\QSTK-0.2.6-py2.7.egg
this has created a QSTK-0.2.6-py2.7.egg directory in my site-packages directory which I can open and find files in. However, I have tried to import QSTK from the python shell and get the usual "No module named..." import error.
I looked for a setup.py file as I have used these to install packages before, but could not find one.
I have also looked at this thread which gives details of installing a .egg file without using easy install, but cannot figure out what changes I would need to make to the script provided as this is to install a specific package that I already have.
If anyone can help by explaining either how I can install this .egg file correctly or by providing a link to the QSTK modules for python 2.7 64 bit in another format this would be greatly appreciated.
I have managed to install the packages that QSTK is dependant on okay (numpy, scipy, matplotlib, pandas, python-dateutil and scikit-learn).
I have finally found another place to download this from with a package that works: https://pypi.python.org/pypi/QSTK/0.2.6 has a QSTK-0.2.6.tar.gz option to build it from the source code.
Unzipping this (then again once down to the .tar), I could find the setup.py file and install by going to the directory with the setup file and running:
python setup.py install
这篇关于如何在Windows上安装.egg Python软件包(尝试使用easy_install无效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!