添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接


  • Data loading...
Results 1 to 3 of 3
Coding Thread, Python Pip install issues in Coding and Web Development; Hi Everyone, I'm hoping this is the right forum. I'm having an issue with install packages via pip. This is ...
  1. #1

    Join Date
    Jan 2023
    Location
    East Midlands
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Python Pip install issues

    Hi Everyone,
    I'm hoping this is the right forum. I'm having an issue with install packages via pip.
    This is the error I get:
    Code:
    Could not fetch URL https://pypi.python.org/simple/requests/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/requests/ (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),)) - skipping
    I've spoken to the technicians at my school, they said their was an issue with pypi.org's safety and they couldn't unblock the URL because of it. Is anyone aware of a way to safely install Python packages? Ideally I don't want to use an online IDE as our internet is currently very slow and temperamental.

    Thank you

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    7,495
    Thank Post
    1,963
    Thanked 1,543 Times in 1,281 Posts
    Rep Power
    517
    Quote Originally Posted by Mrs_McGT View Post
    I've spoken to the technicians at my school, they said their was an issue with pypi.org's safety and they couldn't unblock the URL because of it.
    You can get Pip to download packages on one machine and install them on another - a quick Google for "download python packages for offline use" gives a bunch of answers, top of which was this StackOverflow item:

    https://stackoverflow.com/questions/...ckages-offline

    However, rather than you doing the above yourself, the proper solution is probably going to be to go back to the IT staff at your school and figure out what the actual problem is with them. They probably have a good reason for blocking PyPi - it's a public code repository, it can get malware sneaked in, they might well figure it's best not to have just anyone be able to import any package. If that's the case, you should be able to request a known set of libraries to be set up on your Python environment (or possibly they could just whitelist the URLs for known libraries) - that might be the best option anyway, as you'd then have a nice, consistent set of libraries of the same version across all your machines.

    Ideally I don't want to use an online IDE as our internet is currently very slow and temperamental.
    Again, is this something you can ask the IT staff about - is your whole school's actual internet connection the issue, or is local network access (weak / overloaded WiFi, dodgy switch) the problem?

    There's a couple of threads on this forum about setting up virtual machine environments for Python and other programming environments - it can be a good option, you put all the programming stuff in a self-contained, sandboxed VM where pupils can tinker around and easily restore to defaults if anything goes wrong. Also, you could set up a local server as a self-contained programming environment.

  3. #3
    PurpleTentacle's Avatar
    Join Date
    Jun 2017
    Location
    WOLVERHAMPTON
    Posts
    45
    Thank Post
    31
    Thanked 6 Times in 4 Posts
    Rep Power
    16

    This *may* help.

    This goes back to 2018 for me so my memory maybe a little hazy on the details.

    I think it was to do with MITM type filtering and to get wheels installed I did the following:

    Code:
    python -m pip install --upgrade pip --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install numpy --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pandas --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pyglet --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pygame --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install wxpython --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pillow --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install opencv-python --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install matplotlib --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install dash --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org
    And this was when our filtering had us going through a proxy:

    Code:
    python -m pip install --upgrade pip --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install numpy --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pandas --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pyglet --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pygame --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install wxpython --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install pillow --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install opencv-python --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install matplotlib --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.orgpip install dash --proxy [proxy_address:proxy_port] --trusted-host pypi.python.org --trusted-host pypi.org --trusted-host files.pythonhosted.org

SHARE:

Similar Threads

  1. Installation issues
    By ToastyHost in forum EduGeek Joomla 1.5 Package
    Replies: 12
    Last Post: 14th June 2009, 03:26 PM
  2. Install Issues.
    By rob_coles in forum EduGeek Joomla 1.0 Package
    Replies: 6
    Last Post: 2nd April 2008, 08:20 AM
  3. Smart Tech SynchronEyes Silent install issues
    By TimJing in forum Educational Software
    Replies: 2
    Last Post: 1st October 2007, 06:13 PM
  4. Installation issue - NTVDM CPU
    By Stese in forum Windows
    Replies: 2
    Last Post: 2nd November 2006, 08:37 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts