Python Forum

Full Version: Installing auto-sklearn on Windows 10
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

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
First I would want to see why the pip isn't being found via the environment set up. (Assuming you're running a bourne-like shell), what do you get when you run command -v pip and echo $PATH in the virtual environment?

Second, if you want a workaround, just run pip from python directly.
python -m pip -V
Since the correct python is being found, this should work.