Open TornaxO7 opened 2 years ago
I was just copy + pasting this block:
# Install basicsr - https://github.com/xinntao/BasicSR
# We use BasicSR for both training and inference
pip install basicsr
# facexlib and gfpgan are for face enhancement
pip install facexlib
pip install gfpgan
pip install -r requirements.txt
python setup.py develop
I added the sudo
to python setup.py develop
because I've got this error otherwise:
running develop
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/lib/python3.9/site-packages/test-easy-install-32088.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/lib/python3.9/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/easy_install.html
Please make the appropriate changes for your system and try again.
It sounds like something wrong with your python in your OS. You shouldn't use sudo for unknown code. Instead, you may use "pip3 install --user packagename" subcommand or python venv. Also make sure you don't use python2_7
I don't have python2 on my machine.
You shouldn't use sudo for unknown code. Instead, you may use "pip3 install --user packagename" subcommand or python venv. Also make sure you don't use python2_7
oh yes, you're right. It'd be probably nice to add this to the README :)
python setup.py develop
But how should I execute this without sudo
?
help, I have the same issue
Same here!
Just in case someone has this issue once again:: Close Anaconda cmd prompt. Now right click on the Anaconda prompt icon and select "run as administrator"
Hi! I'm getting the following error message if I execute
sudo python setup.py develop
:How can I fix this?