L
L
larionov_n2015-02-08 00:38:52
Django
larionov_n, 2015-02-08 00:38:52

Why doesn't pip work in virtualenv?

Trying to start a django project on OS X. Installed virtualenv with python and pip which is in /Libraries/**
Making virtualenv envs/django. source envs/django/bin/activate. I write pip install django. Returns Could not find any downloads that satisfy the requirement django. No distributions at all found for django. Well, with any package, has anyone had such a problem? And how do you work on a mac with python, separate from the installed interpreter in the dependencies of the operating system or with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Eremin, 2015-02-08
@Sergei_Erjemin

Because it doesn't exist yet and needs to be installed:

curl https://bootstrap.pypa.io/get-pip.py > ~/tmp/get-pip.py
python ~/tmp/get-pip.py

L
larionov_n, 2015-02-08
@larionov_n

As I understand it, on Mac OS, the resources of the built-in python are symlinked, somehow cleverly linked, and so on. In vain I tried to do something extra with the python that is on the poppy as an OS X dependency. Advice to everyone, do not remove or modify the python installed on the poppy. Reinstalled the system, everything worked, he restored the symlinks, package configuration, etc. If you installed via brew, brew reinstall python might help. But it's better to use virtualenv and a wrapper for it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question