Python 找不到setup.py的任何发行版
我在安装pip时遇到问题。我正在尝试下载Python 找不到setup.py的任何发行版,python,pip,Python,Pip,我在安装pip时遇到问题。我正在尝试下载SQLAlchemy并从下载gz文件。但是,当我在命令提示符下键入pip install setup.py时,我得到: Downloading/unpacking setup.py Could not find any downloads that satisfy the requirement setup.py Cleaning up.. No distributions at all found for setup.py 我在尝试下载其他库时遇到了
SQLAlchemy
并从下载gz文件。但是,当我在命令提示符下键入pip install setup.py
时,我得到:
Downloading/unpacking setup.py
Could not find any downloads that satisfy the requirement setup.py
Cleaning up..
No distributions at all found for setup.py
我在尝试下载其他库时遇到了类似的pip问题,这是在我下载Python3.4的第二天开始的,当时我正在运行Python2.7。我查看并尝试使用pip安装--pre-library\u-name
。然而,这似乎也不起作用,我得到了与上面类似的信息
谢谢您使用了错误的命令。请做
pip install SQLAlchemy
或:
python3-mpipinstallsqlalchemy在Ubuntu上运行良好(我的默认设置是Python2)。@mikkoohtama谢谢。我尝试了您建议的第一个命令,并收到以下消息:已成功安装SQLAlchemy清理。。异常
,然后是关于异常的大量描述。请编辑您的问题并包含完整的错误信息,最好是作为标记代码块。@Mikkoohtama我重新打开了命令提示符,它工作了。我不明白发生了什么。非常感谢。
python setup.py install # If you want to manually extract the package for installation for some reason, but this is not required with pip