我尝试这样安装pyqt5-tools:
pip install pyqt5-tools
由此产生的输出是:
ERROR: Could not find a version that satisfies the requirement pyqt5-tools (from versions: none)
ERROR: No matching distribution found for pyqt5-tools
我需要下载pyqt5-tools,因为我正在尝试学习如何用PyQt制作GUI(我是一个初学者)。
我尝试过下载不同的包,但是任何与PyQt相关的东西都失败了……在我的Mac和Ubuntu机
我使用brew upgrade python3将python版本从3.7升级到3.8,但是升级了pipenv和jupyter命令后停止了工作。这些是我到目前为止运行的命令,其他命令可能也不起作用。
这是我运行pipenv时的输出:
-bash: /usr/local/bin/pipenv: /usr/local/opt/python/bin/python3.7: bad interpreter: No such file or directory
这是我运行jupyter命令时的输出:
-bash: /usr/local/bin/jupyter: /usr/local/opt/python/b
在尝试使用pipenv之后,我的python安装和各种包出现了问题(显然不太顺利)。 ➜ which Python
/usr/bin/Python
➜ which python3.8
/usr/local/bin/python3.8 然后,我运行的任何不直接是python命令的命令都会抛出一个糟糕的解释器错误 ➜ pip
zsh: /usr/local/bin/pip: bad interpreter: /usr/local/opt/python/bin/python3.7: no such file or directory
➜ django-admin
zsh: /usr/local
所以我已经安装了python3.8和pip,但是我想安装稳定的python3.7和pip。但当我尝试sudo apt-get install python3.7时,它显示包不可用,但它引用了另一个包。帮助请错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python3.7 is not available, but is referred to by another package.
This may mean that the packag
我希望能够在python3.8和python3.7之间切换,以及更新版本的python。现在,如何将系统默认python版本设置为python3.7?我以为这是用更新替代方案完成的。我正在运行ubuntu 20.04.4
欢迎任何帮助。
干杯
❯ sudo update-alternatives --config python
There are 2 choices for the alternative python (providing /usr/bin/python).
Selection Path Priority Status
-----
我安装了python3.8,然后安装了python2.7。我试图在vs代码中使用python2.7作为选择的环境运行一个py -2 program.py程序,并且我得到了一个错误,即使我已经安装了ImportError: No module named googlemaps。
如果我使用Python3运行这个程序,它就会运行得很好。另外,当我使用python2.7作为选择的运行时环境打开vs代码时,我会得到一个警告Linter Pylint is not installed。如果我点击安装,我会得到另一个警告There's no Pip installer available in t
在用brew将我的系统解释器升级到python@3.8之后,现在所有的东西都乱了。我认为brew有通过pip的pip3符号链接,它允许直接使用pip install <package>,而不是在升级后使用pip3,这个东西停止存在,每当我调用pip时,我得到一个bad interpreter: No such file or directory <python3.7 old directory>,我无法安装任何新的软件包,除非我通过/usr/local/Cellar/python@3.8中的完整路径引用pip3.8。所以我将pip符号链接到pip3.8,这不是最好的做
我对virtualbox (pyvbox)使用Python3绑定。它适用于我的系统的初始python3版本3.7。现在,我想在python3.8中使用完全相同的绑定。我已经安装了所有需要的python3.8包,但是我得到了这个错误:
$ python3
Python 3.8.0 (default, Oct 28 2019, 16:14:01)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more inform