vagrant无法识别python的最新版本

j1dl9f46  于 2021-09-08  发布在  Java
关注(0)|答案(0)|浏览(245)

我正试图通过vagrant安装praw,但上面说:

praw requires Python '>3.5.3' but the running Python is 2.7.17

当我有最新版本时 3.9.6 . 完整命令:

vagrant@vagrant:~$ cd /vagrant/

vagrant@vagrant:/vagrant$ sudo pip install praw

The directory '/home/vagrant/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/vagrant/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting praw

Downloading https://files.pythonhosted.org/packages/9b/51/9d049faaf6c45d9c600c8a5dac5bd30d2333653a5acaf4ac3d0bf572c610/praw-7.1.0.tar.gz (21.3MB)

100% |████████████████████████████████| 21.3MB 27kB/s

praw requires Python '>3.5.3' but the running Python is 2.7.17

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题