Pip安装在Windows 7上无法正常工作Cygwin安装 [英] Pip install not functioning on windows 7 Cygwin install

查看:517
本文介绍了Pip安装在Windows 7上无法正常工作Cygwin安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个可怕的时间,得到pip和运行Cygwin,我刚刚安装在我的Windows 7计算机上。我写的希望任何人都可以告诉我,我在做不正确的方面,使这些包安装正确。



首先,我按照此网站上的说明操作:



http://www.pip-installer.org/en/latest/installing.html



在pip安装之前安装setuptools。我按照步骤操作,运行此命令:

  Ryan @ Albert〜
$ python get-pip.py

得到此输出:

 code>下载/解压pip 
下载pip-1.5.tar.gz(898kB):898kB下载
运行setup.py egg_info包pip

警告:无文件找到匹配'pip / cacert.pem'
警告:没有找到匹配'* .html'目录下的文件'docs'
警告:没有匹配'* .rst'
没有找到匹配'docs / _build / _sources'的先前包含的目录
安装收集的软件包:pip
为pip $ b运行setup.py install b
警告:没有文件发现匹配'pip / cacert.pem'
警告:没有找到匹配文件'docs'下的'* .html'的文件
警告:没有匹配'* .rst' b $ b没有找到匹配'docs / _build / _sources'的先前包含的目录
将pip脚本安装到/ usr / bin
将pip2.7脚本安装到/ usr / bin
安装pip2脚本到/ usr / bin
已成功安装pip
清理...

然后使用此命令运行pip:

  Ryan @ Albert〜
$ pip install --upgrade setuptools

这导致绝对没有输出。一个空白线出现在下面3-4秒,然后输入提示再次没有pip实际上做任何事情。我做了一堆更多的测试,以确认有一些叫做pip在我的机器,但任何时候,它运行,它本质上什么也没有。它没有下载或安装任何程序。



我试图在卸载第一个版本后尝试以另一种方式安装pip。这次我试过:

  $ easy_install pip 

并得到以下输出:

 搜索pip 
最佳匹配:pip 1.5
将pip 1.5添加到easy-install.pth文件
将pip脚本安装到/ usr / bin
将pip2.7脚本安装到/ usr / bin
安装pip2脚本到/ usr / bin

使用/usr/lib/python2.7/site-packages
处理pip的依赖关系
pip的完成处理依赖关系


<$ p $

p> $ pip install virtualenv

然后使命令提示符再次可用。完全像以前的时间。当我检查是否安装了virtualenv,它是不是。



基本上我已经尝试,并试图让我的窗口7运行Cygwin安装,但没有可用。我知道的事实,我可以使用其他软件包来安装插件等,但我真的很感激,如果有人有任何知识,为什么这是发生,所以它不困扰我,当我尝试进一步安装在下线。



任何帮助将非常感谢!

解决方案

/ usr / )时,在64位Cygwin中会导致 ctypes.util bin / cyguuid-1.dll )。修复是从Cygwin安装安装 libuuid-devel 。我从针对requests.py 提出的问题发现了这一点,但我们注意到(并以不同的方式工作)还有一些其他地方。


I'm having a terrible time of getting pip up and running on Cygwin which I just recently installed on my Windows 7 Computer. I am writing in the hope that anyone out there can tell me what I am doing incorrectly in terms of getting these packages installed correctly.

To start, I followed the instructions on this site:

http://www.pip-installer.org/en/latest/installing.html

with setuptools installed prior to pip installation. I followed the steps, ran this command:

Ryan@Albert ~
$ python get-pip.py

got this output:

Downloading/unpacking pip
Downloading pip-1.5.tar.gz (898kB): 898kB downloaded
  Running setup.py egg_info for package pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under direct
    no previously-included directories found matching 'docs/_build/_sources'
Installing collected packages: pip
  Running setup.py install for pip

    warning: no files found matching 'pip/cacert.pem'
    warning: no files found matching '*.html' under directory 'docs'
    warning: no previously-included files matching '*.rst' found under direct
    no previously-included directories found matching 'docs/_build/_sources'
    Installing pip script to /usr/bin
    Installing pip2.7 script to /usr/bin
    Installing pip2 script to /usr/bin
Successfully installed pip
Cleaning up...

and lo and behold, ran pip with this command:

Ryan@Albert ~
$ pip install --upgrade setuptools

which led to absolutely no output. A blank line appeared underneath for 3-4 seconds and then the input prompt came up again without pip actually doing anything. I did a bunch more testing to confirm that there was something called pip on my machine but anytime it ran, it essentially did nothing. It did not download or install any programs.

I went about trying to install pip another way after uninstalling the first version. This time I tried:

$ easy_install pip

And got the following output:

Searching for pip
Best match: pip 1.5
Adding pip 1.5 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.7 script to /usr/bin
Installing pip2 script to /usr/bin

Using /usr/lib/python2.7/site-packages
Processing dependencies for pip
Finished processing dependencies for pip

Again, tried using pip to install virtualenv using this command:

$ pip install virtualenv

and it paused for 3-4 seconds, then made the command prompt available again. Exactly like the previous time. When I checked to see whether virtualenv was installed, it was not.

Essentially I have tried and tried to get pip up and running on my windows 7 Cygwin install but to no avail. I am aware of the fact that I can use other packages to install plugins and so forth but I would really appreciate it if someone had any knowledge on why this was happening so it doesn't plague me when I try to install stuff further on down the line.

Any help would be greatly appreciated!

解决方案

There's a bug(?) in 64-bit Cygwin which causes ctypes.util to segfault when trying to find libuuid (/usr/bin/cyguuid-1.dll). The fix is to install libuuid-devel from Cygwin setup. I found this from an issue filed against requests.py, but it's noted (and worked around in different ways) in a few other places, too.

这篇关于Pip安装在Windows 7上无法正常工作Cygwin安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆