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

前端 未结 7 903
甜味超标
甜味超标 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:52

    You can install a tarball without extracting it first. Just navigate to the directory containing your .tar.gz file from your command prompt and enter this command:

    pip install my-tarball-file-name.tar.gz
    

    I am running python 3.4.3 and this works for me. I can't tell if this would work on other versions of python though.

提交回复
热议问题