简体   繁体   English

无法在xp上的python 2.6下从pypi安装hcluster

[英]Can not install hcluster from pypi under python 2.6 on xp

I am using the setup.py file supplied with hcluster with the following lines added: 我正在使用hcluster随附的setup.py文件,并添加了以下几行:

sys.path.append("c:\\Program Files\\Python26\\Lib\\site-packages\\hcluster-0.2.0")
sys.path.append("c:\\Program Files\\Python26\\Lib\\site-packages\\hcluster-0.2.0\\hcluster")

Then used setup.py as follows: 然后按如下所示使用setup.py:

"c:\\program files\\python26\\python.exe" "c:\\Program Files\\Python26\\Lib\\site-packages\\hcluster-0.2.0\\setup.py" install “ c:\\ program files \\ python26 \\ python.exe”“ c:\\ Program Files \\ Python26 \\ Lib \\ site-packages \\ hcluster-0.2.0 \\ setup.py”安装

I get the following error messages: 我收到以下错误消息:

running install
running build
running build_py
error: package directory 'hcluster' does not exist

Don't know if it trying to read or write hcluster. 不知道它是否尝试读取或写入hcluster。

Any help appreciated 任何帮助表示赞赏

  1. You don't need to add packages in site-packages in sys.path. 您无需在sys.path中的站点软件包中添加软件包。

  2. Did you copy the hcluster in site-package manually? 您是否手动复制了站点群集中的hcluster? It is not the correct way to do it. 这不是正确的方法。

    2.1 You should have the hcluster outside the site-packages say in your home directory and then run "python setup.py install" 2.1您应该将home-packages之外的hcluster放在主目录中,然后运行“ python setup.py install”

    2.2 This will put the package after build into site-package directory. 2.2这将在构建后将软件包放入site-package目录。 This is where all external package reside by default after they are installed. 这是所有外部软件包安装后默认驻留的位置。

  3. Remove the folders related to hcluster from site-packages and install with instruction 2. 从站点程序包中删除与hcluster相关的文件夹,并按照说明2安装。

  4. Read the following to understand your error: http://docs.python.org/install/index.html 阅读以下内容以了解您的错误: http : //docs.python.org/install/index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM