When I try to install Quartz on my system using pip install Quartz
, I face with the following error. I use Mac OSX with Anaconda. Any help is appreciated.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py", line 35, in <module>
install_requires=read_dependencies("requirements.txt"),
File "/private/var/folders/sb/llj7h5px227_5b0__3v0sw5r0000gn/T/pip-build-qf8ezbu5/Quartz/setup.py", line 7, in read_dependencies
with open(req_file) as req:
FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
There seems to be a bug in the setup.py
of the package, so I tried the following:
pip download quartz
.quartz-0.0.1.dev0.tar.gz
.Extract and in setup.py
find the following line
install_requires=read_dependencies(“requirements.txt")
and change it to:
install_requires=read_dependencies("quartz.egg-info/requires.txt")
Run: pip install -e /path/to/quartz-0.0.1.dev0
.
Setup should be completed w/o errors.
Alternatively try this (which fixes ImportError: No module named 'Quartz' when installing pyautogui
I encountered when installing pyautogui
):
pip install pyobjc-core
pip install pyobjc-framework-Quartz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With