Skip to content

Offline Installation? #173

Answered by jab
teddybouch asked this question in Q&A
Discussion options

You must be logged in to vote

If you already have a bidict distribution on your filesystem, an active network connection is not required to be able to install bidict into a Python environment. If you want to use bidict's setup.py to install bidict, you do need to install bidict's setup_requires dependency, setuptools_scm, first.

You can also skip using bidict's setup.py altogether, and "install" bidict just by copying the "bidict" subdirectory into your PYTHONPATH, as follows (note that PYTHONPATH includes the current working directory):

$ curl python.org  # prove we're offline
curl: (6) Could not resolve host: python.org

$ python -c 'import bidict'  # prove we don't have bidict installed yet
Traceback (most recent c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants