问题描述
我正在为我正在做的课程安装名为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文件,因为我已使用这些文件进行安装包之前,但找不到一个.
-
我还查看了,其中提供了以下内容的详细信息:在不使用轻松安装的情况下安装.egg文件,但无法确定列出我需要对提供的脚本进行哪些更改是要安装我已经拥有的特定软件包.
如果任何人可以通过解释如何正确安装此.egg文件或以另一种格式提供指向python 2.7 64位的QSTK模块的链接来提供帮助,将不胜感激.
我设法安装了QSTK所依赖的软件包(numpy,scipy,matplotlib,pandas,python-dateutil和scikit-learn).
我终于找到了另一个可以使用有效软件包下载它的地方: https://pypi.python.org/pypi/QSTK/0.2.6 具有一个QSTK-0.2.6.tar.gz选项,可从源代码.
解压缩此文件(然后再次解压缩到.tar),我可以找到setup.py文件并通过安装文件进入目录并运行来安装:
python setup.py install
I am trying to install a package named QSTK for a course that I am doing. The course points to an installation package for the 32 bit version, but I have 64 Python installed. I have found a .egg file listed on the 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-packagesdirectory):
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 mysite-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 installpackages before, but could not find one.
I have also looked at this thread which gives details ofinstalling a .egg file without using easy install, but cannot figureout what changes I would need to make to the script provided as thisis 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无效)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!