python - pip 在错误的 python 版本下安装 python 库

标签 python cherrypy linux-mint

在 Linux Mint 操作系统上我使用 pip 安装 CherryPy 模块。但是它安装在 python2.7 下:

/home/jacslim/.local/lib/python2.7/site-packages/cherrypy

而不是我在/usr/bin/python3.6中找到的Python 3.6, 我在 Pyton3.6 目录中再次尝试,但发生了同样的事情。

我是否可以直接 pip 使用最新版本的 Python 解释器?

最佳答案

使用 pip3 install 安装 python 3

关于python - pip 在错误的 python 版本下安装 python 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59180681/

相关文章:

python - 如何从句子中提取单词并检查其中是否不存在单词

python - 返回 如果变量 = 0,则将 "change"更改为 : How do I remove a variable (dollars, 25 美分、一毛钱、镍币、便士)?

python - 樱桃皮 : Is there a best way to split the project in multiple files?

python - 使用Webtest 和/或nose 测试cherrypy WSGI 应用程序?

r - 无法在 Linux Mint 19.3 中安装 R 3.6.2 中的 httr 包

python - 并行化数百万次 Numpy 函数迭代

python - 为 Python 模块编译 C 代码时出现问题

Python 3 (CherryPy) 服务器无法在其他计算机上运行

linux - Ubuntu 14 和 Linux Mint 17 上的隧道问题

c++ - OpenCV 内置调试​​或 Release模式?