Reputation: 2338
Coming from R to Python for some data science practice I want to download certain packages. Specifically I'm starting to look at Jinga2 and Jupyter for some work I will be following.
I'm behind a firewall and can't use pip or connect to any outer resource that isn't approved. Since it takes a lot of time to get those approved I am looking for a way to download the packages that I determine I need to run the specific commands I need. In R I can download the source from CRAN.
I'm looking for a CRAN like network for Python. Is there one?
Upvotes: 2
Views: 5838
Reputation: 1507
It doesn't sound like using pip is your problem; you just need to know how to install Python packages.
pip pulls all its packages from https://pypi.python.org/. You can go there yourself and find your package.
Download the .tar.gz file (it's source code) and extract the contents of that folder somewhere.
Now using your command line, navigate to that directory and run
python setup.py install
That's all!
Upvotes: 4
Reputation: 368
You Can install it using the below steps.
pip install <package_name> on your local machine
pip show <package_name>, this will contain link to source code with in Home-page field or download-url field.
Download the source code
Copy to the machine where you want to install it.
Run pip install <path/to/source/code>
However it is not a recommended way of doing things in production. You will have to get a local pip repo setup within your environment or get the pip source whitelisted on the firewall.
Upvotes: 0
Reputation: 78546
you can download unofficial binaries from here and install them using pip install my_binary.whl
Upvotes: 2