11/11/2023 0 Comments Linux install python![]() ![]() While that’s enough to use Pyenv, I also like to install the pyenv-virtualenv plugin, to manage my Python virtual environments. □įor the full installation instructions and shell auto completion refer to: Installation Basics Then, in order for this to take effect, you need to reload the shell with: source ~/.zshrc, or just restart your terminal. Installing pyenv is pretty straight forward, you’ll need to clone the repo and add the binaries to the path.įor a typical Debian based distro using the Zsh shell the instructions would be: git clone ~/.pyenvĮcho 'export PYENV_ROOT="$HOME/.pyenv"' > ~/.zshrcĮcho 'export PATH="$PYENV_ROOT/bin:$PATH"' > ~/.zshrc Setup.py and run the install: python setup.In this article I will introduce you to pyenv, a tool for managing python environments. Or, if you have a requirements.txt file that lists necessary dependencies: pip install -user -r requirements.txt Installing via modules via setup.py to your home directoryĭownload and untar or unzip the module you would like to install.Ĭd into the module directory that contains Once you have configured your PYTHONPATH as described above, you can install packages locallyīy adding the -user flag when calling pip: pip install -user PACKAGE_NAME_HERE Installing modules via pip to your home directory Run this command to update the PYTHONPATH for the current session: source ~/.bash_profile PYTHONPATH="$PYTHONPATH:~/lib/python2.7/site-packages/" > ~/.bash_profile ~/lib/python2.7/site-packages/ like this: echo export These first two steps only need to be done once.Īppend your. This article assumes you are logged into a CETS managed Linux machine (Eniac, a lab machine, graduate workstation, etc). How do I install a Python module for use on Linux systems at SEAS?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |