Index de l'article

PyCharm/Pip

Few tips if you notice inconsistencies between the versions of libraries installed with PyCharm depending on your version of Python (which can happen if you use multiple versions of Python).

Force Pip to install a specific library version in a specific Python version

C:\Users\Georges\AppData\Local\Programs\Python\Python39\python.exe -m pip install --force-reinstall "pandas==2.3.0"

Requirements

pip freeze
pip freeze > requirements.txt

Better, to be sure to print from a specific Python version:

C:\Users\Georges\AppData\Local\Programs\Python\Python39\python.exe -m pip freeze

Uninstall

C:\Users\Georges\AppData\Local\Programs\Python\Python39\python.exe -m pip uninstall mysql-connector

Reinstall from requirements

C:\Users\Georges\AppData\Local\Programs\Python\Python39\python.exe -m pip install --upgrade --force-reinstall -r C:\Users\Georges\PycharmProjects\Tests\requirements.txt

 

Liens ou pièces jointes
Télécharger ce fichier (France-Departements-Deformation.zip)France-Departements-Deformation.zip[France-Departements-Deformation]335 Ko
Télécharger ce fichier (simple_countries.zip)simple_countries.zip[simple_countries]1880 Ko