apt-get和pip的virtualenv有什么不同?它们可以互换吗?
apt-get install virtualenv
The following extra packages will be installed:
python-chardet-whl python-colorama-whl python-distlib-whl python-html5lib-whl python-pip-whl python-requests-whl
python-setuptools-whl python-six-whl python-urllib3-whl python3-virtua
当我试图在EC2上安装任何东西时,它会给我带来一大堆错误,比如无法获取或无法获取。下面是错误堆栈:
ubuntu@ip-172-31-9-88:~$ sudo apt-get install python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils build-essential cpp cpp-4.8 dpkg-dev f
我正在尝试安装一个新模块,但是我发现pip不工作--它显示
pkg_resources.DistributionNotFound: The 'pip==1.5.6' distribution was not found and is required by the application
我每打一次电话。同样,对于pip --help来说。我发现了一些使用pip或easy_install重新安装easy_install的建议,但easy_install也不起作用:
pkg_resources.DistributionNotFound: The 'setuptools==
我得到了AttributeError:在向heroku部署django应用程序时,'PosixPath‘对象没有属性'read_text’。在命令行上运行git push heroku main命令后,pip正在安装pathlib python库时会出现此问题。我做错什么了吗?
以下是在heroku上生成的日志,与我在命令行中看到的类似:
-----> Building on the Heroku-20 stack
-----> Using buildpacks:
1. https://github.com/jonathanong/heroku-bui
我们正在尝试安装以下轮盘文件
ls /tmp/test
argparse-1.4.0-py2.py3-none-any.whl
一种选择是:
pip install --no-index --find-links=file:///tmp/test argparse-1.4.0-py2.py3-none-any.whl
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer mainta
我想安装curses .whl包,这样我就可以在windows上和pick ()一起使用它了。
PS C:\D\Programming\Python> python --version
Python 3.5.2 :: Continuum Analytics, Inc.
PS C:\D\Programming\Python> pip.exe install .\curses-2.2-cp35-none-win32.whl
curses-2.2-cp35-none-win32.whl is not a supported wheel on this platform.
知道为什么吗?
我在这些事情上非常业余。我下载了pip,然后使用这个python get-pip.py来安装pip,它成功地完成了,然后我使用了pip install jupyter notebook,得到了下面的错误
error: subprocess-exited-with-error
任何帮助都会感激的
Microsoft Windows [Version 10.0.19043.2130]
(c) Microsoft Corporation. All rights reserved.
C:\Users\antonis>cd Desktop
C:\Users\antonis\Desktop&
我无法使用以下命令在python项目中安装vtk:
python -m pip install vtk
我得到了一个错误:
ERROR: No matching distribution found for vtk
ERROR: Could not find a version that satisfies the requirement vtk (from versions: none)
我试着更新我的pip包:
python -m pip install --upgrade pip
我试图直接从项目目录安装.whl文件:
python -m pip install .\vtk-9.1.0-
我用的是大学网络代理。
运行此命令:
虚拟-p /usr/bin/python3 3虚拟
我得到了错误:
ags@enigma ~/code> virtualenv -p /usr/bin/python3 virtual
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/ags/code/virtual/bin/python3
Also creating executable in /home/ags/code/vir
我遵循视频教程安装apache-气流。当我在pip install apache-airflow Ubuntu中做WSL2时,它会暗示
ERROR: apache-airflow-providers-http 2.0.3 has requirement requests>=2.26.0, but you'll have requests 2.22.0 which is incompatible.
ERROR: importlib-resources 5.4.0 has requirement zipp>=3.1.0; python_version < "3.1
我试图安装遵循帕特里克柯林斯坚实的课程,但我无法克服这个错误,我已经谷歌了几天。
这是一个错误:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for yarl
Failed to build yarl
ERROR: Could not build wheels for yarl, which is required to install pyproject.toml-based projects
这是报告全文
我正在努力使用Python中的virtualenv。
在virtualenv _env之后,我得到:
Running virtualenv with interpreter /usr/bin/python2
New python executable in /home/marcin/Documents/Projects/django_tutorial/_env/bin/python2
Also creating executable in /home/marcin/Documents/Projects/django_tutorial/_env/bin/python
Installing set
我试图发布我的python项目,但是我有一些问题,你能帮我吗?我有requirements.txt,我还添加了我的git配置文件,这是我第一次使用heroku,我不知道出了什么问题,我在git存储库和主分支上添加了我的项目,我使用python 3,这是我的python项目,我的项目文件和git文件处于相同的级别,我尝试了一些在互联网上找到的东西,但是它对我无效。
这是heroku错误:
-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/python
-----> Python app
在从安装Mayavi之后,下面的工作是通过一个简单的交互式Python提示符完成的:
import mayavi.mlab as MM
MM.test_surf()
但是当我在jupyter-qtconsole下运行同样的程序时,窗口就会出现并挂起。
作为参考,我有以下软件包,按上述网站提供的顺序安装,通过一个新的Python2.7.13安装。
(这些仅仅是使用木星、SciPy、matplotlib、Mayavi和几个有用的附加程序来获得工作环境的依赖关系。)
numpy-1.11.1+mkl-cp27-cp27m-win32.whl
MS VS 2008可再发行(来自MS网站)
无论何时执行virtualenv venv,我都会得到以下错误。我已经通过sudo pip install --user virtualenv安装了虚拟主机
New python executable in /Users/rajrohit/Desktop/Work/LambdaAnsible/TestLambda/venv/bin/python
Please make sure you remove any previous custom paths from your /Users/rajrohit/.pydistutils.cfg file.
Installing setuptools,
我正在尝试下载一个Pypi包使用篮子。但该命令显示"ProtocolError for pypi.python.org/pypi: 403 Must access using HTTPS instead of HTTP“消息。
我的命令是:sudo basket download unittest2
答复是:
`Traceback (most recent call last):
File "/usr/local/bin/basket", line 11, in <module>
sys.exit(main())
File "/usr
我正在尝试为python3.532bit安装Pygame。我已经了解到,我可以使用.whl命令打开站点上提供的pip文件。问题是,我尝试过多种方法,但经常出错。
python -m pip install pygame-1.9.2a0-cp35-none-win32.whl
'python' is not recognized as an internal or external command,
operable program or batch file.
我试图安装的文件:pygame-1.9.2a0-cp35-none-win32.whl
我的python程序位于我的
使用Ubuntu14.04上的pip,我得到了以下错误:
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 21, in <module>
from pip._vendor.requests.packages.urllib3.exceptions import Depende