我在一个系统上安装paramiko时遇到了问题。同样的命令以前也有效,但是后来发生了一些变化,我重新安装了Python,现在paramiko将不会安装。我使用的是Windows 7和Python 3.6.4。Pip返回以下错误:
C:\Users\me>pip --trusted-host pypi.python.org install paramiko
Collecting paramiko
Could not fetch URL https://pypi.python.org/simple/paramiko/: There was a problem confirming the
我用的是conda 4.4.9。我已经安装了TensorFlow,我也想安装Keras。
然后我尝试激活我的虚拟环境并安装Keras,如下所示:
activate tensorflow_env_001
pip install --ignore-installed --upgrade keras
然后,我得到以下错误消息:
tensorflow 1.9.0 has requirement setuptools<=39.1.0, but you'll have setuptools 39.2.0 which is incompatible
这意味着我的setuptools太新了。实际
我正疯狂地想要解决
NotImplementedError: Cannot convert a symbolic Tensor (LSTM-4/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported
首先,我在Windows 10 PC上重新安装了Anaconda:
C:\WINDOWS\system32>conda info
active envi
对于我来说,pip install <package name>的每个包都失败了。这是我得到的:
Could not find a version that satisfies the requirement <package-name
(from versions: )
No matching distribution found for <package-name>
I on Stack和Overflow,但它们似乎与这个并不完全相关。
此外,建议,如果PyPI关闭或我的IP地址被列入黑名单,可能会发生这种情况。似乎这两种情况对我来说都不是真的。
pip
每当我创建一个新的.venv时,我都试图防止这个警告:
> /Users/pi/.pyenv/versions/3.10.0/bin/python -m venv .venv
> . .venv/bin/activate
> pip install ipykernel # or anything
WARNING: You are using pip version 21.2.3; however, version 22.2.2 is available.
You should consider upgrading via the '/Users/pi/code/
我正在尝试写一些脚本,这需要ropper。(仅通过pip安装)如何解决此问题?
我试图在linux上安装它,尝试升级setuptools,安装旧版本,并遵循以下一个主题:!
这是错误消息:
$ pip install ropper
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip
我坚持使用pip 1.4.1,并且在升级包时遇到了问题。
Could not fetch URL https://pypi.python.org/simple/pymongo/: There was a problem confirming
the ssl certificate: <urlopen error [Errno 1] _ssl.c:509: error:1407742E:SSL
routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>
我已经看到,以后版本的pip可以使用--trusted-host
我正在跟踪,但当我到达$VENV/bin/pip install "pyramid==1.10.1" waitress时,它会给我以下错误:
Could not find a version that satisfies the requirement pyramid==1.10.1 (from versions: )
No matching distribution found for pyramid==1.10.1
我使用的是运行python 3.5.1的macSierra 10.13.5 (在python3下)。我可以看到这个包存在于pip上,因为当我尝试在我的机器上安装
我遵循了将包上传到PyPI的官方文档,以及PyPI自述文件中提供的信息,但每次都会收到HTTP400错误:
$ twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: bradaallen
Enter your password:
Uploading brad_nlp_helpers-0.1.1-py3-none-any.whl
HTTPError: 400 Client Error: home_page: Invalid URI for url:
我正在尝试将cfgrib安装到我的WSL2 Ubuntu上,但是当我输入python3 -m cfgrib selfcheck时,它给出了如下错误。
Traceback (most recent call last):
File "/home/berke/.local/lib/python3.8/site-packages/cfgrib/messages.py", line 42, in <module>
import pyeccodes.compat as eccodes
ModuleNotFoundError: No module named
我无法安装任何Python库。我正在使用pip 9.0.1和python 2.7。我得到了以下错误:
EN-NishantS:~ 8417$ pip install presto-python-client
Collecting presto-python-client
Could not find a version that satisfies the requirement presto-python-client (from versions: )
No matching distribution found for presto-python-client
在使用pip inst
我是新来的Python/Django程序员。
我创建了一个基于Django 2.0的应用程序,并根据打包了它。然后我运行命令:
$ pip install --user django-easybuggy-0.1.tar.gz
但是,我得到了错误,无法安装。
Processing ./django-easybuggy-0.1.tar.gz
Collecting certifi==2018.1.18 (from django-easybuggy==0.1)
Could not find a version that satisfies the requirement certifi==2018
当尝试在Fedora Linux 26上的python下导入zbar时,我收到以下错误:
>>> import zbar
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "zbar/__init__.py", line 1, in <module>
from .zbar import *
File "zbar/zbar.py", line 70, in <modul
我很难使用pip来安装几乎所有的东西。我刚开始编程,所以我想这可能是我一直在做的错误的事情,所以我选择了easy_install来完成我需要的大部分工作,这通常是有效的。但是,现在我正在尝试下载nltk库,但这项工作也没有完成。
我试着进入
sudo pip install nltk
但得到的响应如下:
/Library/Frameworks/Python.framework/Versions/2.7/bin/pip run on Sat May 4 00:15:38 2013
Downloading/unpacking nltk
Getting page https://pypi.p
我在Watson Studio上使用jupyter notebook,安装python库需要很长时间。 例如,执行以下代码行大约需要半个小时: !conda install -c conda-forge geopy --yes
from geopy.geocoders import Nominatim # module to convert an address into latitude and longitude values
# libraries for displaying images
from IPython.display import Image
from IPython
我无法在我的Linux服务器上安装Pandas。我正在使用virtualenv,但我尝试安装Pandas,但没有这种情况,但没有运气。
root@host:~# uname -a
Linux host 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29 11:21:34 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Numpy安装了很多警告。
You are using pip version 6.0.8, however version 8.1.2 is available.
You should con
当试图导入PIL (使用枕头)时,我得到以下错误:
from PIL import ImageTk, Image
File "/usr/local/lib/python2.7/site-packages/PIL/ImageTk.py", line 42, in <module>
from . import Image
File "/usr/local/lib/python2.7/site-packages/PIL/Image.py", line 60, in <module>
from . import _
我正在尝试将pygubu安装在与我通常使用的不同的设备上。我已经安装了PIP,但是最近在某个地方,我以某种方式破坏了PIP。当我输入pip install pygubu时,我会得到以下消息:
> C:\WINDOWS\system32>pip install pygubu Cannot fetch index base URL
> http://pypi.python.org/simple/ Could not find any downloads that
> satisfy the requirement pygubu No distributions
我刚刚将我的包的新版本上传到PyPi (1.2.1.0-r4):我可以下载egg文件并使用easy_install安装它,并且版本检查正确。但是当我尝试使用pip进行安装时,它会安装1.1.0.0版。即使我显式地指定了使用pip install -Iv tome==1.2.1.0-r4进行pip的版本,我也会得到这样的消息:Requested tome==1.2.1.0-r4, but installing version 1.1.0.0,但我不明白为什么。
我再次与parse_version确认1.2.1的版本字符串大于1.1.0的版本字符串,如下所示:
>>> from