Installing Codac for Python use
Install the Codac Python package
In case you want to use Codac only with Python, then the installation procedure is simply:
# You may have to upgrade pip (19.0.0 required at least)
pip3 install --upgrade pip
pip3 install codac
The ✓ configurations are officially supported at the moment:
Language |
Linux (amd64) |
Linux (arm64) |
Windows (x64) |
Windows (x86) |
macOS (arm64) |
macOS (x86_64) |
Online |
---|---|---|---|---|---|---|---|
Python 3.6 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.7 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.8 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.9 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.10 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.11 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
|
Python 3.12 |
✓ |
✓ |
✓ |
✓ |
✓ |
✓ |
If a configuration in this table does not work, please contact us.
Warning
pip install ...
or pip3 install ...
commands may only work inside virtual environments or with --break-system-packages
parameter, e.g.:pip3 install --break-system-packages codac
Warning
sudo pip3 install --upgrade vibes # Add here any other non-binary wheels dependencies...
sudo pip3 install --upgrade --nodeps --platform macosx_10_9_x86_64 --only-binary=:all: --target=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages codac
Depending on the way Python was installed, the path to specify after --target
may differ, e.g. if Python was installed from https://www.python.org/ftp/python/3.10.4/python-3.10.4-macos11.pkg, it may be /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages
. Otherwise, run python3 -m site
to check the site-packages
full path in sys.path list
. Also, the value 10_9
may need to be changed to 10_14
(or possibly another value) for some Python versions.
Note
Unsupported computers can still probably follow Installing local Python binding .
Update your Codac Python package
For updating your already installed version of Codac, the procedure is:
pip3 install codac --upgrade
Test your Codac Python package
In order to verify that your installation is working properly in Python, you can run:
python -m unittest discover codac.tests