pip是一个替代品easy_install.但是我应该在Windows上安装pip使用easy_install吗?有没有更好的办法?
一个鸣叫曰:
不要使用easy_install,除非你喜欢刺伤自己的脸.使用点子.
为什么要使用pip而不是easy_install?问题不在于PyPI和包装作者吗?如果作者将垃圾源tarball(例如:丢失文件,没有setup.py)上传到PyPI,那么pip和easy_install都将失败.除了化妆品差异,为什么Python人(如上面的推文)似乎强烈支持pip而不是easy_install?
(我们假设我们正在讨论来自Distribute包的easy_install,这是由社区维护的)
我还没有看到有关Windows兼容性的任何内容 - 如果我付出一些努力,这是在途中还是现在可用的?(我有一个Mac和一个Ubuntu盒子,但Windows机器是我目前与theano一起使用的独立显卡的机器).
我试图更新scrapy,当我试图检查版本时,我得到了以下错误
C:\Windows\system32>scrapy version -v
:0: UserWarning: You do not have a working installation of the service_identity
module: 'No module named service_identity'. Please install it from <https://pyp
i.python.org/pypi/service_identity> and make sure all of its dependencies are sa
tisfied. Without the service_identity module and a recent enough pyOpenSSL to s
upport it, Twisted can perform only rudimentary TLS client hostname verification
. Many valid certificate/hostname mappings may be rejected.
Scrapy : 0.22.2
lxml : 3.2.3.0
libxml2 : 2.9.0
Twisted : 14.0.0
Python …Run Code Online (Sandbox Code Playgroud) 有人知道Python模块名称背后的逻辑与easy_install中使用的实际包的名称吗?
一些(以及其他)示例对我来说似乎有些不合逻辑:
easy_install mysql-python,但实际上是进口import MySQLdbeasy_install python-memcached,但实际上是进口import memcache(没有尾随d)我找不到找到等价的一致方法.对于某些模块,我花了很多时间浏览它.我究竟做错了什么?
我试图在Windows中执行python代码...代码包含以下行:
from scapy import *
import random
import socket
import dns.query
Run Code Online (Sandbox Code Playgroud)
但是我从命令行编译它会产生以下错误:
C:\Python25 > attack.py
Traceback <most recent call last>:
File "C:\Python25\attack.py", line 4 , in <module>
import dns.query
ImportError: No module named dns.query
Run Code Online (Sandbox Code Playgroud)
可能是什么错误?我怎么能解决这个问题?是由于路径还是因为dns.query模块没有编译
python ×6
easy-install ×3
pip ×3
pypi ×2
windows ×2
installation ×1
python-2.7 ×1
scapy ×1
scrapy ×1
setuptools ×1
tensorflow ×1