Requirements file didn't install - installation

i have an error when i want to install package_name
they didn't want to install, like when i want to install a pakhage like instabot i say an error when it installing, it say you have an error like this:
error: could not create 'C:\Python311\LICENSE': Permission denied
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> huepy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
so that;s the error, and when i want to fix it i tried to install requirements.txt again but they say you have an error again again again...
that when i put:
pip install -r requirements.txt
the error say:
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
can anyone plz give an advice

Related

Creating\Updating conda venv with yml file fails in pip dependencies part with gym[rom]

Im trying to create a virtual enviorment based on an enviorment.yml file with the command:
"mamba env update -f environment.yml -n cs236781-hw".
The yml file contains this part:
- pip:
- nbmerge
- gym[atari,accept-rom-license,box2d]==0.21.0
which seems to fail as I get this error in my minicinda prompt:
Building wheel for AutoROM.accept-rom-license (pyproject.toml): started
Building wheel for AutoROM.accept-rom-license (pyproject.toml): finished with status 'error'
Failed to build AutoROM.accept-rom-license
Pip subprocess error:
error: subprocess-exited-with-error
× Building wheel for AutoROM.accept-rom-license (pyproject.toml) did not run successfully.
ImportError: DLL load failed while importing libtorrent: The specified module could not be found.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for AutoROM.accept-rom-license
ERROR: Could not build wheels for AutoROM.accept-rom-license, which is required to install pyproject.toml-based projects
failed
CondaEnvException: Pip failed
Ive tried so many things to fix this (reinstalling conda, python even vscode and its c++ build tools) with no success.
Does anyone have any clue?
I assume you are working on Windows x64?
If yes, you will probably need OpenSSL 1.1.x.
Please try to install e.g. Win64OpenSSL_Light-1_1_1s.exe first, to get the required SSL libraries.
https://slproweb.com/products/Win32OpenSSL.html
Regards,
Konstantin

ERROR: Failed building wheel for skranger

I am trying to install the package skranger using pip install skranger. However, I get an error ERROR: Could not build wheels for skranger, which is required to install pyproject.toml-based projects.
In the traceback, I also see an error ModuleNotFoundError: No module named 'setuptools'. However, setuptools is already installed.
I have tried related solutions already on stackoverflow, but have yet to find a solution. Any help would be greatly appreciated!

fatal error: gnu/stubs-32.h: No such file or directory

I'm trying to build gcc 7.2.0. I get this error:
fatal error: gnu/stubs-32.h: No such file or directory
I don't have root access or sudo access on this machine so I cannot use apt. What source package can I install that will resolve this?
Try installing glibc-devel, see https://www.question-defense.com/2010/03/09/usrincludegnustubs-h727-error-gnustubs-32-h-no-such-file-or-directory and https://stackoverflow.com/a/7412698/6723250.

Errors appearing in terminal after updating Anaconda

I ran conda update --all recently and now every time I open a new terminal I get these error lines at the top:
ERROR: This cross-compiler package contains no program /bin/x86_64-conda_cos6-linux-gnu-addr2line
ERROR: activate-binutils_linux-64.sh failed, see above for details
ERROR: This cross-compiler package contains no program /bin/x86_64-conda_cos6-linux-gnu-cc
ERROR: activate-gcc_linux-64.sh failed, see above for details
ERROR: This cross-compiler package contains no program /bin/x86_64-conda_cos6-linux-gnu-c++
ERROR: activate-gxx_linux-64.sh failed, see above for details
(anaconda3-4.4.0) imran#holly:~$
Any idea what is going on and how to fix it?
I solved this with:
conda remove gcc_linux-64 gcc_impl_linux-64 binutils_linux-64 binutils_impl_linux-64
Thanks to the help in the comments from #darthbith

Error while installing sentry `unable to execute 'clang': No such file or directory`

I am trying to install sentry by following the instruction from the link:
However when I try to execute command pip install -U sentry, I receive the error InstallationError: Command python setup.py egg_info failed with error code 1 in /webapps/sentry/env/build/symsynd
Here is the detail from log file:
self.run_setup(setup_script, setup_base, args)
File "/webapps/sentry/env/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1003, in run_setup
raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setup.py egg_info:
unable to execute 'clang': No such file or directory
unable to execute 'clang': No such file or directory
No working compiler found, or bogus compiler options
passed to the compiler from Python's distutils module.
See the error messages above.
It would be nice if someone can figure out what am I doing wrong.
Thank you,
Vady
You need a C compiler to build the symsynd dependency.
If you are on a Debian based distribution (Ubuntu, etc.) just do :
sudo apt-get install clang
It seems that specifying a C compiler will be ok, but not. In some packages clang is hard-coded. The only way is to install clang.

Resources