Python Forum
Package Update without Internet Access on Host
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Package Update without Internet Access on Host
#1
I can't seem to find an answer to the question of how to update packages when I cannot use pip due to no internet access on box. I have been installing new packages from source using the python setup.ph install method with success. But how to I update an existing package using a similar method? If I just install a newer package will it replace the older one or am I going to end up with two versions installed? Or worse?

Thanks.
Reply
#2
Quote: have been installing new packages from source using the python setup.ph install method
think you mean setup.py
You can reinstall new package, which should replace old version.
I would backup old version first, just in case.
Reply
#3
(Mar-26-2019, 08:03 PM)Larz60+ Wrote:
Quote: have been installing new packages from source using the python setup.ph install method
think you mean setup.py
You can reinstall new package, which should replace old version.
I would backup old version first, just in case.

Sorry for the typo... you are correct: setup.py.

Thanks for the info! I'll give it a go.
Reply
#4
Well this didn't work the way we thought. I downloaded and extracted the source for setuptools...

# cd /usr/local/src/setuptools-40.8.0
# /usr/uv/python/bin/python3 setup.py install

It ended up installing it along side the old version....
drwxrwxr-x 2 root root 4096 Feb 18 2015 setuptools-2.1.dist-info_bak
-rw-r--r-- 1 root root 1045146 Mar 27 13:46 setuptools-40.8.0-py3.4.egg
drwxrwxr-x 5 root root 4096 Feb 18 2015 setuptools_bak
-rw-r--r-- 1 root root 30 Mar 27 13:46 setuptools.pth

I had to rename setuptools-2.1.dist-info and setuptools so it would pick up the new version. Then we were good.

Do I need to do anything more than remove those two directories I renamed to remove the old package or is the more I need to do?

Thanks.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Best Python course (internet or better software) for a unknowing. If possible German. Tobias_Claren 3 1,311 Dec-29-2022, 07:42 AM
Last Post: Gribouillis
  How to update Python package remotely? olegk 0 1,545 Jan-11-2021, 08:31 AM
Last Post: olegk
  Clone full Anaconda system to a PC without internet connection. Jstechg 3 9,423 Oct-24-2018, 07:41 AM
Last Post: Jstechg

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020