انجمنهای فارسی اوبونتو
کمک و پشتیبانی => انجمن عمومی => نویسنده: javad751 در 29 فروردین 1394، 03:28 بظ
-
سلام
من میخواستم که pip را نصب کنم
اول از اینجا https://pip.pypa.io/en/stable/installing.html فایل get-pip.py را دانلود کردم
بعد دستورد python get-pip.py را زدم که نصب بشه ولی یه همچین خطایی داد:
javad@javad:~/Downloads/PersianDM$ python get-pip.py
Collecting pip
Using cached pip-6.1.1-py2.py3-none-any.whl
Collecting setuptools
Using cached setuptools-15.1-py2.py3-none-any.whl
Installing 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 اجرا کن
-
با sudo اجرا کن
مهندس ممنون،درست شد \\:D/
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: pip
Successfully installed pip-6.1.1
الان نصب شد دیگه؟؟ :D
-
من الان از طریق pip-django را نصب کردم (نصب شد ولی یه همچین پیغامی داد)
معنیش چیه؟؟ :o :o
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: Django
Successfully installed Django-1.8
-
sudo -H
-
sudo -H
ممنونم.
فقط -H که اضافه شد یعنی چی؟! :o
-
نمیدونم خودش گفته اینو بزن :o
شوخی کردم
man sudo
-
راه درستتر این بود که مینوشتید:
sudo apt-get install python-pip
-
راه درستتر این بود که مینوشتید:
sudo apt-get install python-pip
بله،درست میگید ولی ورژن داخل مخازن قدیمی بود!
مجبور شدم خودم نصب کنم