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

前端 未结 7 897
甜味超标
甜味超标 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.

    0 讨论(0)
提交回复
热议问题