Apr-15-2021, 06:43 PM
I installed Ubuntu 18.04 on Windows 10 as an application. The latest version of python in Ubuntu 18.04 is python 3.6.9.
Since I wish to install and use auto-sklearn I must have python 3.7 or greater.
I created a virtual environment of Ubuntu 18.04 and added a second version of python or python 3.7.2. That should easily
install auto-sklearn. To make it easier, I aliased them
python to python3.7
and
python3 to python3.7. They are presently not permanent now, but I can make them permanent when I need to do so.
However, what about pip and pip3? They are both connected to the original python 3.6.9. That python version will not work.
To my understanding they must be associated with python 3.7.2. The only python version that can install auto-sklearn in my virtual environment is version 3.7.2 and that goes for pip and pip3, also.
The code below shows this.
My questions is how do I do it?
Thanks in advance.
Respectfully,
LZ
Since I wish to install and use auto-sklearn I must have python 3.7 or greater.
I created a virtual environment of Ubuntu 18.04 and added a second version of python or python 3.7.2. That should easily
install auto-sklearn. To make it easier, I aliased them
python to python3.7
and
python3 to python3.7. They are presently not permanent now, but I can make them permanent when I need to do so.
However, what about pip and pip3? They are both connected to the original python 3.6.9. That python version will not work.
To my understanding they must be associated with python 3.7.2. The only python version that can install auto-sklearn in my virtual environment is version 3.7.2 and that goes for pip and pip3, also.
The code below shows this.
Output:(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$ python -V
Python 3.7.10
(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$ python3 -V
Python 3.7.10
(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$ alias
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
alias python='python3.7'
alias python3='python3.7'
(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$ pip -V
pip 9.0.1 from /home/james/awesome_python_project/awesome_venv/lib/python3.6/site-packages (python 3.6)
(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$ pip3 -V
pip 9.0.1 from /home/james/awesome_python_project/awesome_venv/lib/python3.6/site-packages (python 3.6)
(awesome_venv) james@LAPTOP-8R8F1BRA:~/awesome_python_project$
I need to connect pip3 and pip to python 3.7.2.My questions is how do I do it?
Thanks in advance.
Respectfully,
LZ