I am trying to install pyodbc for python 2.6. The problem is I am not having admin access to install this module using pip. Is there a possibility to install into a local folder and use by setting the python path or some other way.
Asked
Active
Viewed 174 times
0
-
Is the pip issue due to an external connection or is pip itself blocked? – roganjosh Nov 28 '18 at 14:08
-
1pip has a `--user` option you could try. – Felix Nov 28 '18 at 14:10
-
see here: https://stackoverflow.com/questions/42988977/what-is-the-purpose-pip-install-user – Felix Nov 28 '18 at 14:11
-
Problem is pip itself is blocked due to firewall settings which I am not having access to change. Tried downloading the package, but running setup.py is giving error as it is not run as root – Charity Nov 28 '18 at 14:16
1 Answers
1
This worked for me:
Downloaded pyodbc-4.0.24.tar.gz
from here and saved it in my ~/Downloads
folder.
Opened a Terminal window, did cd ~/Downloads
to switch to the Downloads folder, and then did
pip install --user pyodbc-4.0.24.tar.gz

Gord Thompson
- 116,920
- 32
- 215
- 418