помогите пожалуйста установить virtualenv с python3.8 внутри.
в домашнем каталоге, в .bashrc у меня есть такой алиас:
alias python3=python3.8
я пытаюсь использовать virtualenv так:
md@md ~/.MINT18/code/python/project0 $ python -V
Python 2.7.12
md@md ~/.MINT18/code/python/project0 $ python3 -V
Python 3.8.0
md@md ~/.MINT18/code/python/project0 $ virtualenv -p /usr/bin/python3 venv
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/md/.MINT18/code/python/project0/venv/bin/python3
Also creating executable in /home/md/.MINT18/code/python/project0/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
md@md ~/.MINT18/code/python/project0 $
md@md ~/.MINT18/code/python/project0/venv/bin $ ls
activate activate.csh activate.fish activate_this.py easy_install easy_install-3.5 pip pip3 pip3.5 python python3 python3.5 python-config wheel
md@md ~/.MINT18/code/python/project0/venv/bin $ source activate
(venv) md@md ~/.MINT18/code/python/project0/venv/bin $ python -V
Python 3.5.2
(venv) md@md ~/.MINT18/code/python/project0/venv/bin $ python3 -V
Python 3.8.0
насколько я понимаю, у меня должна установиться вирт.среда с версией питона3.8 . но так не происходит, почему-то внутри virtualenv используется версия 3.5
ещё пробовал так, но тоже неудачно:
md@md ~/.MINT18/code/python/project0 $ virtualenv -p /usr/bin/python3.8 venv
Running virtualenv with interpreter /usr/bin/python3.8
Using base prefix '/usr'
/usr/lib/python3/dist-packages/virtualenv.py:1082: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
New python executable in /home/md/.MINT18/code/python/project0/venv/bin/python3.8
Also creating executable in /home/md/.MINT18/code/python/project0/venv/bin/python
Installing setuptools, pkg_resources, pip, wheel...
Complete output from command /home/md/.MINT18/cod...0/venv/bin/python3.8 - setuptools pkg_resources pip wheel:
Exception:
Traceback (most recent call last):
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/commands/install.py", line 267, in run
with self._build_session(options) as session:
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 66, in _build_session
session = PipSession(
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/download.py", line 321, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/download.py", line 93, in user_agent
zip(["name", "version", "id"], platform.linux_distribution()),
AttributeError: module 'platform' has no attribute 'linux_distribution'
Traceback (most recent call last):
File "<stdin>", line 24, in <module>
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/__init__.py", line 217, in main
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 242, in main
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/basecommand.py", line 66, in _build_session
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/download.py", line 321, in __init__
File "/usr/share/python-wheels/pip-8.1.1-py2.py3-none-any.whl/pip/download.py", line 93, in user_agent
AttributeError: module 'platform' has no attribute 'linux_distribution'
----------------------------------------
...Installing setuptools, pkg_resources, pip, wheel...done.
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/virtualenv.py", line 2363, in <module>
main()
File "/usr/lib/python3/dist-packages/virtualenv.py", line 709, in main
create_environment(home_dir,
File "/usr/lib/python3/dist-packages/virtualenv.py", line 984, in create_environment
install_wheel(
File "/usr/lib/python3/dist-packages/virtualenv.py", line 918, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python3/dist-packages/virtualenv.py", line 810, in call_subprocess
raise OSError(
OSError: Command /home/md/.MINT18/cod...0/venv/bin/python3.8 - setuptools pkg_resources pip wheel failed with error code 1
md@md ~/.MINT18/code/python/project0 $
md@md ~/.MINT18/code/python/project0/venv/bin $ ls
python python3 python3.8
md@md ~/.MINT18/code/python/project0/venv/bin $ source activate
bash: activate: Нет такого файла или каталога
а вообще в моей системе есть такие версии питона:
python2
python2.7
python3
python3.5
python3.5m
python3.8