我使用以下命令在 Ubuntu 20.04 中安装了 pipelinev:
pip3 install --user pipenv
Run Code Online (Sandbox Code Playgroud)
但现在当我尝试运行pipenv或pipenv shell终端无法识别它时:
bash: /usr/bin/pipenv: No such file or directory
Run Code Online (Sandbox Code Playgroud)
我该如何纠正这个问题?
matplotlib我正在尝试从官方网站运行一个基本示例:
然而,当我运行代码时,我的 Python 解释器会抱怨并输出以下消息:
UserWarning: Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure.
plt.show()
Run Code Online (Sandbox Code Playgroud)
我已经matplotlib通过安装了pip3 install matplotlib。我当前的python3版本是3.9.1,操作系统是Ubuntu 20.04。
我已经尝试安装 tkinter,如此处所述,但没有成功。我应该怎么办?为什么会发生这种情况?
我的操作系统是 ubuntu 20.04,我的默认 python 是 3.8.2。我正在尝试使用 pipenv 和 python 3.7 创建一个虚拟环境。运行时出现以下错误pipenv install --python 3.7:
Creating a virtualenv for this project…
Using /usr/bin/python3.7m (3.7.0) to create virtualenv…
?RuntimeError: failed to query /usr/bin/python3.7m with code 1 err: 'Traceback (most recent call last):\n File "/usr/lib/python3/dist-packages/virtualenv/discovery/py_info.py", line 16, in <module>\n from distutils.command.install import SCHEME_KEYS\nModuleNotFoundError: No module named \'distutils.command\'\n'
Error while trying to remove the /home/yuhao/.local/share/virtualenvs/electrode-mimic-j_E-dTLW env:
No such file or directory
Virtualenv location:
Warning: Your Pipfile requires python_version 3.7, but you are …Run Code Online (Sandbox Code Playgroud)