How to install Python packages from the tar.gz file without using pip install

前端 未结 7 935
甜味超标
甜味超标 2020-11-27 10:26

Long story short my work computer has network constraints which means trying to use pip install in cmd just leads to timing out/not finding package errors.

7条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 10:35

    Thanks to the answers below combined I've got it working.

    • First needed to unpack the tar.gz file into a folder.
    • Then before running python setup.py install had to point cmd towards the correct folder. I did this by pushd C:\Users\absolutefilepathtotarunpackedfolder
    • Then run python setup.py install

    Thanks Tales Padua & Hugo Honorem

提交回复
热议问题