If you now run a git freeze you will see the correct entry, # pip freeze To ensure the correct entry is included within your requirements file add the egg switch to your pip command. You may be now asking yourself â How is the module that I have installed from Git included within my requirements file?â. Location: /opt/lib/python2.7/site-packages If you want to re-download the packages instead of using the files from your pip cache, add the -no-cache-dir flag: pip install -force-reinstall -no-cache-dir ![]() ![]() To install via SSH the following syntax is used, sudo pip install install via HTTPS the following syntax is used, sudo pip install git+ Example Install # pip install git+ from setuptools import setupĪdditional documentation around building a setup.py file can be found here. Note : If you code is located within folders use the packages keyword instead of py_modules. This file will be read by pip at the point of installation. First of all add a setup.py file to your repo.
0 Comments
Leave a Reply. |