Unable to pip install package on Mac after first deployment
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Start with the Section 3, Lesson 7 material and review the linked pip, PyPA, and Heroku issues. Add an FAQ entry covering the macOS certificate failure, the Install Certificates.command workaround, and the relevant links; done means the guidance is available to learners facing this error.
Written by the indexing model from the issue text.
Description
Location within the Course
- Section: 3
- Lesson: 7
- Language: English
Description
After deploying successfully to PyPI, I was unable to pip install it into a new test-env. Here is the error:
Download error on https://pypi.python.org/simple/pytest-runner/:
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Things I tried that didn't work
Based upon https://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi/46410817#46410817
I added $HOME/Library/Application Support/pip/pip.conf file with:
[global]
trusted-host = pypi.python.org
That did not work. So I went to: https://github.com/pypa/pip/issues/4205
I tried pip install --trusted-host pypi.python.org pip --upgrade; that did not help. Also did pip install incremental that made no apparent difference.
What worked
The previous pypa issue above referenced this issue: https://github.com/heroku/heroku-django-template/issues/79
where I found the instruction to run /Applications/Python\ 3.6/Install\ Certificates.command, after which things were OK.
Maybe this can be put into an FAQ if others have this problem. Should include links to the issues since a number of people indicated that other things fixed the similar error on their machines.
- Dominant language
- No language data
- Stars
- 8
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from twoscoops/Creating-and-Distributing-Python-Packages
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
twoscoops/Creating-and-Distributing-Python-Packages#36 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
twoscoops/Creating-and-Distributing-Python-Packages#35 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 1/5 Under an hour Newbie friendliness 50/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in twoscoops/Creating-and-Distributing-Python-Packages
Similar issues
-
sync-en
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100