pjrockzzz
pjrockzzz

Reputation: 165

Offline install of setuptools

I am trying to install python packages offline. I have downloaded from PYPI and when I am trying to install, I am getting an error "ModuleNotFoundError: No module named 'setuptools'". So I have downloaded "setuptools" from PYPI and tried to install, but the setup.py in setuptools already has "import setuptools". So, error again. Please help with this issue.

How do I install setup tools offline ?

Thankyou

Upvotes: 4

Views: 5174

Answers (2)

AmitP
AmitP

Reputation: 437

There are two ways you can do an offline install, either by downloading the .whl file or by downloading the .tar.gz file (source), and then using pip to install it. Please note you'll need python3 and the corresponding pip for the installation to succeed. You can use one of the following commands depending on if it's a .whl or .tar.gz-

pip3 install setuptools-52.0.0-py3-none-any.whl

pip3 install setuptools-52.0.0.tar.gz

Upvotes: -1

Toby Maguire
Toby Maguire

Reputation: 154

download wheel file .whl file :like to the wheel file. then open terminal(as admin) and go to the directory which your whl file exists. type : pip install {name of your setuptools}.whl hope it works.:)

Upvotes: -1

Related Questions