Use Package From Github In Conda Virtual Environment
Setup Conda virtual environment Coding in a Jupyter notebook Python version 3.6 I have Googled, searched through the Conda help, github help on this site as wel as found closely
Solution 1:
I ended up doing the following:
- Install git in the virtual environment: (conda install git)
- Clone the project. (git clone [URL])
- Install the package (cd to package directory that contains setup.py.
- Then run "python setup.py install").
Found the answer in the first part in this video: How to Install Python Package from GitHub
Solution 2:
To install https://github.com/nicocanali/airtable-python to your jupyter.
Download the .zip of the repo from the github website.
To install it in jupyter enter the following command from the anaconda console.
pip install [path_to_.zip_file_on_pc]
Works on any github file
Solution 3:
Found a simple solution here:
For example, to install the package located at https://github.com/Netflix/metaflow, navigate to your desired environment in the Anaconda prompt, activate the environment, and then execute the following commands:
conda install git
conda install pip
pip install git+git://github.com/Netflix/metaflow.git
(Note that the git package is available in Anaconda Navigator, so can be installed from there instead of from the Anaconda prompt.)
Post a Comment for "Use Package From Github In Conda Virtual Environment"