PyCharm provides methods for installing, uninstalling, and upgrading Python packages for a particular Python interpreter. By default, PyCharm uses pip to manage project packages. For Conda environments you can use the conda package manager.
![]()
CImage.py is a Python module used for image processing. Installing Python, PIL/Pillow, and cImage.py. Click cImage.py, and click the button labeled Raw to see the contents of the file. Click File Save Page As (Chrome & Firefox) or File Save As (Safari) to save the file on your computer.
To manage Python packages for the project interpreter, select the Project Interpreter page in the project Settings/Preferences or select Interpreter Settings in the Python Interpreter widget.
If you select a Python interpreter with the configured Conda environment, the Use Conda Package Manager toggle appears in the packages area toolbar.
Use this toggle to manage packages from the Conda environment repository. By default, this toggle is switched off and you can manage only the packages available with the selected Python interpreter.
Install a package
Uninstall a package![]()
PyCharm smartly tracks the status of packages and recognizes outdated versions by showing the number of the currently installed package version (column Version), and the latest available version (column Latest version). When a newer version of a package is detected, PyCharm marks it with the arrow sign and suggests to upgrade it.
By default, the Latest version column shows only stable versions of the packages. If you want to extend the scope of the latest available versions to any pre-release versions (such as beta or release candidate), click Show early releases.
Upgrade a package
You can upgrade several packages at once. Hold Cmd (macOS) or Ctrl on (Unix or Windows), left-click to select several items in the list of packages, and then click Upgrade.
If you're accustomed to installing packages from the commands line, you can proceed with your workflow using the Python console.
Reuse installed packages
The easiest way to install PrettyTable is to use the 'easy_install' command which is part of Python setuputils. From the command line, you can simply type
and everything should just work.
You can upgrade an existing PrettyTable installation to a newer version by typing
If you can't use easy_install for some reason, you can always do the installation manually. Download the latest version of PrettyTable from the Downloads tab at this Google code project site. Save the file as 'prettytable.py' (not prettytable-x.y.py) in your Python installation's 'site-packages' directory. Depending on your operating system, this directory might be something like:
That should be enough for 'import prettytable' to work.
Clone this wiki locally![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |