Durgesh Nandini
Durgesh Nandini

Reputation: 134

Unable to install LIbraries for Python3.6.5

I had pyhton2.7 and Python3.5 in my laptop but to use f string, I installed pyhton3.6.5 and removed python3.5. Now I have python2.7 and Python3.6.5. But I am not able to install any libraries for the python3.6.5

I have tried this but it doesn't works

Please let me know how can I install modules for the python3.6.5

Upvotes: 0

Views: 289

Answers (2)

SUSHMA KUMARI
SUSHMA KUMARI

Reputation: 95

Check the installation in your system, if there are several python3 installs in your system it might be an issue.

Either uninstall the other version of python3 or create a virtual environment and then install the library.

Check the description at https://www.alexkras.com/how-to-use-virtualenv-in-python-to-install-packages-locally/

Upvotes: 1

Gautam Shahi
Gautam Shahi

Reputation: 455

Try this

sudo python3.6 -m pip install [Package_to_install]

I hope it will work.

Upvotes: 1

Related Questions