1 - You had installed python3
but your python in /usr/bin/python
may be still the older version so run the following command to fix it
python3 -m pip install <pkg>
2 - The other possible reason could be initially forgetting the -r
: Use pip install -r requirements.txt
the -r
is essential for the command.
3 - If still not working, there is one more way to fix this error. try this but first, get the version of your package
python3 -m pip install --pre --upgrade PACKAGE==VERSION.VERSION.VERSION
4 - You know sometimes the package already exists then also we get this error, so try to check if u are able to import or not.
5 - Try pipwin
instead of pip
sometimes if the problem is with pip this works as a magic
6 - Don't forget to turn on your internet, strange but it happens sometimes.
let me know if the problem persists. But as per my guess, it should work now.