怎么能把自己虚拟环境中的 python3.5 改成3,6
1
Wincer 2018-08-26 20:24:25 +08:00 via Android
3.5 中不是已经自带 asyncio 了吗?
|
2
zcsnbb OP 啊 是 aiohttp ==
|
3
likuku 2018-08-26 20:53:48 +08:00
pyenv 你值得拥有,此后你想用什么版本 py 就随意了。
|
4
leavic 2018-08-27 11:57:22 +08:00
你不能创建一个新的虚拟环境吗?
|
5
papagu 2018-08-27 12:36:01 +08:00
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update sudo apt-get upgrade sudo apt-get install -f sudo apt-get install python3.6 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.5 100 sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 200 sudo update-alternatives --config python3 print 200 |
6
papagu 2018-08-27 12:38:11 +08:00
噢对了,安装之前别忘记这些依赖包先安装
python3-dev build-essential libssl-dev libffi-dev libxml2 libxml2-dev libxslt1-dev zlib1g-dev libcurl4-openssl-dev zlib zlib-devel bzip2 bzip2-devel ncurses ncurses-devel readline readline-devel openssl openssl-devel openssl-static xz lzma xz-devel sqlite sqlite-devel gdbm gdbm-devel tk tk-devel |