Окунулся в пайтон и начал погружаться в Джанго, но при попытке установить Джанго столкнулся с проблемой. Я ранее уже знакомился с этим стэком, но дело было давно, вот решил вернуться. Это я к тому, что после проблемы с установкой джанго возникла и проблема обновления пип. Я попытался разобраться в ошибках, но знаний пока что явно маловато, поэтому я Не теряя времени решил обратиться к общественности, ну и параллельно продолжать изучение вопроса. Ниже приведу данные из консоли, после установки джанго и попытки обновления пип.
PS
Ну и к слову, я правильно помню, что если необходимо установить джанго, к примеру, 2.2, нужно указать $
pip install django@2.2
?
***
$ pip install django
Collecting django
Downloading https://files.pythonhosted.org/packages/a9/4f/8a247eee2958529a6a80 5d38fbacd9764fd566462fa0016aa2a2947ab2a6/Django-3.0.5-py3-none-any.whl (7.5MB)
Collecting asgiref~=3.2 (from django)
Downloading https://files.pythonhosted.org/packages/68/00/25013f7310a56d17e1ab 6fd885d5c1f216b7123b550d295c93f8e29d372a/asgiref-3.2.7-py2.py3-none-any.whl
Collecting pytz (from django)
Downloading https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf4 81fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl (509kB )
Collecting sqlparse>=0.2.2 (from django)
Downloading https://files.pythonhosted.org/packages/85/ee/6e821932f413a5c4b76b e9c5936e313e4fc626b33f16e027866e1d60f588/sqlparse-0.3.1-py2.py3-none-any.whl (40 kB)
Installing collected packages: asgiref, pytz, sqlparse, django
Exception:
Traceback (most recent call last):
File "c:\program files (x86)\python\python35\lib\site-packages\pip\basecommand .py", line 211, in main
status = self.run(options, args)
File "c:\program files (x86)\python\python35\lib\site-packages\pip\commands\in stall.py", line 311, in run
root=options.root_path,
File "c:\program files (x86)\python\python35\lib\site-packages\pip\req\req_set .py", line 646, in install
**kwargs
File "c:\program files (x86)\python\python35\lib\site-packages\pip\req\req_ins tall.py", line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File "c:\program files (x86)\python\python35\lib\site-packages\pip\req\req_ins tall.py", line 998, in move_wheel_files
isolated=self.isolated,
File "c:\program files (x86)\python\python35\lib\site-packages\pip\wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "c:\program files (x86)\python\python35\lib\site-packages\pip\wheel.py", line 310, in clobber
ensure_dir(destdir)
File "c:\program files (x86)\python\python35\lib\site-packages\pip\utils\__ini t__.py", line 71, in ensure_dir
os.makedirs(path)
File "c:\program files (x86)\python\python35\lib\os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [WinError 5] ▒▒▒▒▒▒▒▒ ▒ ▒▒▒▒▒▒▒: 'c:\\program files (x86)\\pyth on\\python35\\Lib\\site-packages\\asgiref'
You are using pip version 7.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
* * *
$ python -m pip install --upgrade pip
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Exception:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python\Python35\lib\shutil.py", line 538, in move
os.rename(src, real_dst)
PermissionError: [WinError 5] ▒▒▒▒▒▒▒▒ ▒ ▒▒▒▒▒▒▒: 'c:\\program files (x86)\\python\\python35\\lib\\site-packages\\pip-7.1.2.dist-info\\description.rst' -> 'C:\\Users\\metro\\AppData\\Local\\Temp\\pip-2_7w9mjz-uninstall\\program files (x86)\\python\\python35\\lib\\site-packages\\pip-7.1.2.dist-info\\description.rst'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\basecommand.py", line 211, in main
status = self.run(options, args)
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\commands\install.py", line 311, in run
root=options.root_path,
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\req\req_set.py", line 640, in install
requirement.uninstall(auto_confirm=True)
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\req\req_install.py", line 716, in uninstall
paths_to_remove.remove(auto_confirm)
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\req\req_uninstall.py", line 125, in remove
renames(path, new_path)
File "C:\Program Files (x86)\Python\Python35\lib\site-packages\pip\utils\__init__.py", line 315, in renames
shutil.move(old, new)
File "C:\Program Files (x86)\Python\Python35\lib\shutil.py", line 553, in move
os.unlink(src)
PermissionError: [WinError 5] ▒▒▒▒▒▒▒▒ ▒ ▒▒▒▒▒▒▒: 'c:\\program files (x86)\\python\\python35\\lib\\site-packages\\pip-7.1.2.dist-info\\description.rst'
You are using pip version 7.1.2, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.