Установка Pip и простая установка Django и VirtualEnv не работают - PullRequest
0 голосов
/ 12 сентября 2018

Я пытаюсь установить virtualenv и django и продолжаю получать ошибки. Я пытался использовать whql-файл virtualenv, но все еще не нашел решения. Мой брандмауэр Windows также выключен. Это сообщение об ошибке для virtualenv, тоже самое происходит, когда я пытаюсь установить колбу также.

C:\Windows\system32>easy_install virtualenv
Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Download error on https://pypi.python.org/simple/virtualenv/: [WinError 10061] N
o connection could be made because the target machine actively refused it -- Som
e packages may not be found!
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/
Download error on https://pypi.python.org/simple/: [WinError 10061] No connectio
n could be made because the target machine actively refused it -- Some packages
may not be found!
No local packages or working download links found for virtualenv
error: Could not find suitable distribution for Requirement.parse('virtualenv')

C:\Windows\system32>pip install virtualenv
Collecting virtualenv
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DD70>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/virt
ualenv/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DED0>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/virt
ualenv/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DDD0>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/virt
ualenv/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DB30>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/virt
ualenv/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DC90>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/virt
ualenv/
  Could not find a version that satisfies the requirement virtualenv                                       (from versions: )
No matching distribution found for virtualenv

Это сообщение об ошибке для Django.

C:\Windows\system32>pip install django
Collecting django
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DE90>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/djan
go/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DE30>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/djan
go/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DD50>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/djan
go/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DDB0>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/djan
go/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip.
_vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0298DC10>: Failed to establish a new connection: [WinError 10061] No connection
 could be made because the target machine actively refused it',))': /simple/djan
go/
  Could not find a version that satisfies the requirement django (from versions:
 )
No matching distribution found for django

C:\Windows\system32>easy_install django
Searching for django
Reading https://pypi.python.org/simple/django/
Download error on https://pypi.python.org/simple/django/: [WinError 10061] No co
nnection could be made because the target machine actively refused it -- Some pa
ckages may not be found!
Couldn't find index page for 'django' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [WinError 10061] No connectio
n could be made because the target machine actively refused it -- Some packages
may not be found!
No local packages or working download links found for django
error: Could not find suitable distribution for Requirement.parse('django')

C:\Windows\system32>

1 Ответ

0 голосов
/ 12 сентября 2018

Я бы, наверное, решил это с помощью пипа.Я бы сделал следующее:

pip install virtualenv

Затем, в следующем каталоге, вы решите настроить свою виртуальную среду.Затем с помощью следующего имени назовите вашу виртуальную среду:

virtualenv pymote_env

Затем, после того, как мы это сделаем, мы можем назвать виртуальную среду следующим образом: pymote_env \ Scripts \ activ (pymote_env)

Затем, когда вызов виртуальной средыкоманда pip для проверки работоспособности

pip

Затем после установки django:

pip install django

Надеюсь, это то, что вы ищете.H

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...