Linux Tutorial
Got the error ‘python setup.py egg_info failed with error code 1’ when trying to install bcrypt package on RHEL8.6.
tried bcrypt installation using pop3 command as mentioned below,
# pip3 install bcrypt --user
Received this error for above installation command.
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting bcrypt Using cached https://files.pythonhosted.org/packages/8c/ae/3af7d006aacf513975fd1948a6b4d6f8b4a307f8a244e1a3d3774b297aad/bcrypt-4.0.1.tar.gz Complete output from command python setup.py egg_info: =============================DEBUG ASSISTANCE========================== If you are seeing an error here please try the following to successfully install bcrypt: Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip =============================DEBUG ASSISTANCE========================== Traceback (most recent call last): File "", line 1, in File "/tmp/pip-build-05_ovll0/bcrypt/setup.py", line 11, in from setuptools_rust import RustExtension ModuleNotFoundError: No module named 'setuptools_rust' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-05_ovll0/bcrypt/
To fix this error, tried upgrading pip package,
# pip3 install --upgrade pip
installing packages,
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting pip Downloading https://files.pythonhosted.org/packages/a4/6d/ Installing collected packages: pip Successfully installed pip-21.3.1
Let’s try to install bcrypt package now,
# pip3 install bcrypt
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Collecting bcrypt Downloading bcrypt-4.0.1-cp36-abi3-manylinux_2_28_x86_64.whl Installing collected packages: bcrypt Successfully installed bcrypt-4.0.1 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Linux Tutorial
Privacy Policy | Copyright2020 - All Rights Reserved. | Contact us | Report website issues in Github | Facebook page | Google+ page