1

I have installed Python 3.7 I can use Python 3.7 by typing python3 command in terminal.

However if i type pip --version or pip3 --version it prints pip 18.1 from /usr/local/lib/python3.5/dist-packages/pip (python 3.5) in either case. So i cannot install packages to use with Python3.7

How can i set pip3 path and Python version to use it with Python3.7 ?

BTW i use Raspbian Stretch as OS.

mcan
  • 1,914
  • 3
  • 32
  • 53

1 Answers1

0

Your path is probably not properly configured. In general, it's best to leave system Python version untouched to avoid breaking things.

I would recommend using pyenv to manage and easily switch Python versions. It can easily work with virtual environments as well, or even as a substitute.

Install from here: https://github.com/pyenv/pyenv#installation

Guy
  • 1,303
  • 1
  • 14
  • 20