Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt' Python on Mac

15,634

You should run that only from a clone of the repository, and only if you want to do development of that library.

Share:
15,634
esaunde1
Author by

esaunde1

Updated on June 05, 2022

Comments

  • esaunde1
    esaunde1 almost 2 years

    I am trying to use this code from github.

    The first three commands to get this started are:

    pip install bitfinex
    
    bitfinex-poll-orderbook
    
    pip install -r ./requirements.txt
    

    The first two work perfectly fine and I am able see the orderbook for Bitfinex, a bitcoin trading exchange. When I put the third line I get the following error

    Could not open requirements file: [Errno 2] No such file or directory: './requirements.txt'
    

    What can I do to fix this?

  • esaunde1
    esaunde1 over 8 years
    this helped but I still have another error. Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-AUyHaP/lxml/setup.‌​py';exec(compile(get‌​attr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-t_Dx3j-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-AUyHaP/lxml
  • memoselyk
    memoselyk over 8 years
    The file is requiring lxml==3.3.1, but it isn't available in the PyPI anymore. You'll need to get it from somewhere else... Or try changing the requirements.txt file
  • esaunde1
    esaunde1 over 8 years
    I downloaded that fire and still had an error Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/zl/ny6y70vn3lb22pyz9‌​cxl75j80000gn/T/pip-‌​build-oPRVYA/lxml/se‌​tup.py';exec(compile‌​(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/zl/ny6y70vn3lb22pyz9cxl75j80000gn/T/pip-O7ugup-‌​record/install-recor‌​d.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/zl/ny6y70vn3lb22pyz9cxl75j80000gn/T/pip‌​-build-oPRVYA/lxml
  • memoselyk
    memoselyk over 8 years
    This is the repository, but you'll need to find the commit yourself
  • esaunde1
    esaunde1 over 8 years
    where do I place that folder?