2

I have Python 2.7 installed on macOS Sierra. I am unable to install any Python package.

When I try pip install django -v:

Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')

easy_install virtualenv -v:

Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Couldn't find index page for 'virtualenv' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
No local packages or download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')

I can't figure out what Could not find suitable distribution for Requirement.parse('virtualenv') is trying to say. How to fix this?

Georgy
  • 12,464
  • 7
  • 65
  • 73
Krrish Raj
  • 1,505
  • 12
  • 28

1 Answers1

1

If you got a resticted network you can try installing the wheel file
directly via pip install virtualenv-15.2.0-py2.py3-none-any.whl.

Then pip install Django-1.11.12-py2.py3-none-any.whl.

That is: download the whl files from the links provided and open a terminal in the Download's folder. then type in the commands "pip install ...".

mab
  • 2,658
  • 26
  • 36