Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to installl python package and the command window is unable to find the requirements.txt in the location and I am facing following error IOError: [Errno 2] No such file or directory: ‘requirements.txt’ ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. in python. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How IOError: [Errno 2] No such file or directory: ‘requirements.txt’ Error Occurs ?
I am trying to installl python package and the command window is unable to find the requirements.txt in the location and I am facing following error.
IOError: [Errno 2] No such file or directory: 'requirements.txt'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
How To Solve IOError: [Errno 2] No such file or directory: ‘requirements.txt’ Error ?
How To Solve IOError: [Errno 2] No such file or directory: ‘requirements.txt’ Error ?
To Solve IOError: [Errno 2] No such file or directory: ‘requirements.txt’ Error Here if you are using virtual environment then you need to create the requirements file first then you can install packages. To create the requirements file just use this command and it will create requirements file for you pip freeze > requirements.txt. Second solution is Just find requirements.txt path and then try to install.
IOError: [Errno 2] No such file or directory: ‘requirements.txt’
To Solve IOError: [Errno 2] No such file or directory: ‘requirements.txt’ Error Here if you are using virtual environment then you need to create the requirements file first then you can install packages. To create the requirements file just use this command and it will create requirements file for you pip freeze > requirements.txt. Second solution is Just find requirements.txt path and then try to install.
Solution 1: create the requirements file first
Here if you are using virtual environment then you need to create the requirements file first then you can install packages. To create the requirements file just use this command and it will create requirements file for you.
pip freeze > requirements.txt
Solution 2: find requirements.txt path
Just find requirements.txt path and then try to install. Just use this command to find path.
find -name "requirements.txt"
OR
find . -regex '.*requirements.txt$' //on theroot directory of your terminal
and then run this command.
pip install -r requirements.txt
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?
Also, Read