I'm trying to run an example on Flask with the command pip install -r requirements.txt

requirements.txt

 Flask==0.10.1 

An error occurs

Cleaning up ... Command / usr / bin / python3 -c "import setuptools, tokenize; file = '/ tmp / pip-build-mjv2up4b / Flask / setup.py'; exec (compile (getattr (tokenize, 'open' , open) ( file ) .read (). replace ('\ r \ n', '\ n'), file , 'exec')) "install --record / tmp / pip-b0i5mgt4-record / install-record .txt - single-version-externally-managed - compile failed with error code 1 in / tmp / pip-build-mjv2up4b / Flask Storing debug log for failure in / home / pi /.pip / pip.log

 ~$ python -V Python 3.4.2 ~$ pip -V pip 1.5.6 from /usr/lib/python3/dist-packages (python 3.4) 
  • Storing debug log for failure in /home/pi/.pip/pip.log - it did not help? - MaxU
  • Logs contain the same info (in my opinion) pastebin.com/pMYjEg1u - Pavel
  • error: could not create '/usr/local/lib/python3.4/dist-packages/flask': Permission denied - MaxU
  • The rights? chmod -R 777. or how? - Pavel
  • one
    If you are trying to install Flask in the main system, you need to run pip from root. Using virtualenv allows you to do the same, but from a regular user. - Nikmoon

0