0 کاربر و 3 مهمان درحال مشاهده موضوع.
javad@javad:~/Downloads/PersianDM$ python get-pip.pyCollecting pip Using cached pip-6.1.1-py2.py3-none-any.whlCollecting setuptools Using cached setuptools-15.1-py2.py3-none-any.whlInstalling collected packages: pip, setuptools Exception: Traceback (most recent call last): File "/tmp/tmp9aBnMc/pip.zip/pip/basecommand.py", line 246, in main status = self.run(options, args) File "/tmp/tmp9aBnMc/pip.zip/pip/commands/install.py", line 352, in run root=options.root_path, File "/tmp/tmp9aBnMc/pip.zip/pip/req/req_set.py", line 693, in install **kwargs File "/tmp/tmp9aBnMc/pip.zip/pip/req/req_install.py", line 817, in install self.move_wheel_files(self.source_dir, root=root) File "/tmp/tmp9aBnMc/pip.zip/pip/req/req_install.py", line 1018, in move_wheel_files isolated=self.isolated, File "/tmp/tmp9aBnMc/pip.zip/pip/wheel.py", line 237, in move_wheel_files clobber(source, lib_dir, True) File "/tmp/tmp9aBnMc/pip.zip/pip/wheel.py", line 208, in clobber os.makedirs(destdir) File "/usr/lib/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip-6.1.1.dist-info'
با sudo اجرا کن
javad@javad:~/Downloads/PersianDM$ sudo python get-pip.py [sudo] password for javad: The directory '/home/javad/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/home/javad/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/home/javad/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.Collecting pip/tmp/tmpQpnSi1/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. Downloading pip-6.1.1-py2.py3-none-any.whl (1.1MB) 100% |████████████████████████████████| 1.1MB 22kB/s Installing collected packages: pipSuccessfully installed pip-6.1.1
javad@javad:~$ sudo pip install Django==1.8[sudo] password for javad: The directory '/home/javad/.cache/pip/log' or its parent directory is not owned by the current user and the debug log has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/home/javad/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.The directory '/home/javad/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.Collecting Django==1.8/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading Django-1.8-py2.py3-none-any.whl (6.2MB) 100% |████████████████████████████████| 6.2MB 25kB/s Installing collected packages: DjangoSuccessfully installed Django-1.8
sudo -H
sudo apt-get install python-pip
راه درستتر این بود که مینوشتید:کد: [انتخاب]sudo apt-get install python-pip