This app lets you install/uninstall packages from PyPI or wheel files for the Python 3.7 embedded in Origin.
Download the file Package Manager for Python.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
The package manager will add or remove files. It's highly recommended to launch this app in a new Origin session as administrator, or at least save your project before any operation.
List Installed Packages
Only packages installed to the <Program Folder>\64bit\PyDLLs or <Program Folder>\32bit\PyDLLs will be listed. It does not check the system environment to keep changes limited to the embedded Python in Origin.
Install a Package
A package can be installed from PyPI or wheel files to <Program Folder>\64bit\PyDLLs or <Program Folder>\32bit\PyDLLs. Make sure you are permitted to write files to the corresponding folder. Otherwise, please run Origin as Administrator. Now simply click the + button to start off
- Install Package from PyPI (recommeded)
Make sure the package is available on PyPI. Say, to install a package named scipy, you can find it on PyPI: https://pypi.python.org/pypi/scipy. Now enter the package name into the popup dialog Install Package and click the OK button.
You can install a particular version by specifying it. For example, scipy==1.2.1 installs scipy of version 1.2.1. Scipy 1.2.1 requires numpy (>=1.8.2) which will be installed automatically. Be aware that, if the required package has been installed, this operation will update it.
- Install Package from Wheel File
Make sure the wheel file is applicable to the embedded Python in Origin. Enter the full path of it or click the ... button to select the very wheel file. Everything is same as installing from PyPI except that you cannot specify the package version.
Once installed, you can import it directly. For example: import scipy
Uninstall a Package
This operation removes related files from the disk. Make sure you are permitted to remove files from the corresponding location.
To uninstall a package, select it and choose Uninstall from the context menu. This app will reject further process if the package is in use.
In some case, it requires restarting Origin to uninstall a package successfully. This happens mostly after upgradating.