Linux Mint Türkiye
Yazılım => Paket Yönetimi, Güncelleme ve Depo Sorunları => Konuyu başlatan: Salvoton - 06 Aralık 2017, 20:00:00
-
pip3 install komutunu kullanırken bu hatayı alıyorum. İnternette epey bir aradım ama sorunumu çözmedim.
sudo pip3 install pyautoguiÇıktı:
The directory '/home/asdas/.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/asdas/.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 pyautogui
Downloading PyAutoGUI-0.9.36.tar.gz (46kB)
100% |████████████████████████████████| 51kB 295kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-qfe6htfj/pyautogui/setup.py", line 6, in <module>
version=__import__('pyautogui').__version__,
File "/tmp/pip-build-qfe6htfj/pyautogui/pyautogui/__init__.py", line 115, in <module>
from . import _pyautogui_x11 as platformModule
File "/tmp/pip-build-qfe6htfj/pyautogui/pyautogui/_pyautogui_x11.py", line 7, in <module>
from Xlib.display import Display
ImportError: No module named 'Xlib'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qfe6htfj/pyautogui/
-
Aşağıdaki komutla xlib paketini yükledikten sonra tekrar dener misiniz?
sudo apt-get install python-xlib
-
sorun devam ediyor.
The directory '/home/asdas/.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/asdas/.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 pyautogui
Downloading PyAutoGUI-0.9.36.tar.gz (46kB)
100% |████████████████████████████████| 51kB 323kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-b3sy8aal/pyautogui/setup.py", line 6, in <module>
version=__import__('pyautogui').__version__,
File "/tmp/pip-build-b3sy8aal/pyautogui/pyautogui/__init__.py", line 115, in <module>
from . import _pyautogui_x11 as platformModule
File "/tmp/pip-build-b3sy8aal/pyautogui/pyautogui/_pyautogui_x11.py", line 7, in <module>
from Xlib.display import Display
ImportError: No module named 'Xlib'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-b3sy8aal/pyautogui/
-
Yukarıda paket adını eksik yazmışım. python3-xlib paketini yüklemek gerekiyor. Doğrusu şöyle olacak:
sudo apt-get install python3-xlib
-
Sorun çözüldü. Çok teşekkür ederim :)