Gönderen Konu: Web.py kurulum sorunu & Django kurulum sorunu.  (Okunma sayısı 3649 defa)

Çevrimdışı G-khan

  • Yeni Penguen
  • *
  • İleti: 50
  • Gökyüzüne aşık bir adam.
    • https://twitter.com/g_khana
  • Dağıtım: Linux Mint 17.3,2
  • Masaüstü Ortamı: Cinnamon
  • Grafik Kartı: NVIDIA GeForce GT 650M & Intel HD Graphics 4000
  • İşlemci: Intel Core i7 3610QM
Web.py kurulum sorunu & Django kurulum sorunu.
« : 07 Ekim 2015, 22:05:59 »
paketleri yada kütüphaneleri sorunsuz kuramıyorum genelde bu 2 hatayı almaktayım.
Kod: [Seç]
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-thv7hcns/Web.py

ve
Kod: [Seç]
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/utils'
Web.py kurulum sorunu :

Kod: [Seç]
sudo pip install Web.py
The directory '/home/gkhan/.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/gkhan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting Web.py
  Downloading web.py-0.37.tar.gz (90kB)
    100% |████████████████████████████████| 94kB 53kB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-thv7hcns/Web.py/setup.py", line 6, in <module>
        from web import __version__
      File "/tmp/pip-build-thv7hcns/Web.py/web/__init__.py", line 14, in <module>
        import utils, db, net, wsgi, http, webapi, httpserver, debugerror
    ImportError: No module named 'utils'
   
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-thv7hcns/Web.py

Django kurulum sorunu

Kod: [Seç]
pip install django
Collecting django
  Using cached Django-1.8.5-py2.py3-none-any.whl
Installing collected packages: django
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 211, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 311, in run
    root=options.root_path,
  File "/usr/local/lib/python3.4/dist-packages/pip/req/req_set.py", line 646, in install
    **kwargs
  File "/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py", line 803, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/local/lib/python3.4/dist-packages/pip/req/req_install.py", line 998, in move_wheel_files
    isolated=self.isolated,
  File "/usr/local/lib/python3.4/dist-packages/pip/wheel.py", line 339, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/local/lib/python3.4/dist-packages/pip/wheel.py", line 310, in clobber
    ensure_dir(destdir)
  File "/usr/local/lib/python3.4/dist-packages/pip/utils/__init__.py", line 71, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python3.4/os.py", line 237, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages/django'

« Son Düzenleme: 07 Ekim 2015, 22:10:13 Gönderen: G-khan »
Gökyüzüne aşık bir adam..

Çevrimdışı Butterfly

  • Proje Sorumlusu
  • Guru
  • *****
  • İleti: 18863
  • Linux Mint Türkiye
  • Dağıtım: Linux Mint 20 & LMDE 4
  • Masaüstü Ortamı: Cinnamon 4.6 & Xfce 4.14
  • Grafik Kartı: Nvidia GF 9500
  • İşlemci: AMD X3
Ynt: Web.py kurulum sorunu & Django kurulum sorunu.
« Yanıtla #1 : 07 Ekim 2015, 22:56:03 »
Alıntı
    ImportError: No module named 'utils'

Kod: [Seç]
sudo pip install utils
Alıntı
Permission denied: '/usr/local/lib/python3.4/dist-packages/django'

Kod: [Seç]
sudo pip install django
Elimizden geldiğince dilimizin döndüğünce...

[info] Konu Açarken Dikkat Edilmesi Gerekenler  |  Forum Kuralları  |  Kod Etiketi Kullanımı[/info]