How to install the following packages for Flask.

Asked by Rohith Kumar

I was trying to install the below packages and I got the issue. Kindly help to install the packages. Since I got the below error.

pip install flask
pip install flask-script
pip install WTForms
pip install mongoengine
pip install flask_mongoengine

creating /usr/local/lib/python2.7/dist-packages/flask_mongoengine

error: could not create '/usr/local/lib/python2.7/dist-packages/flask_mongoengine': Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-mongoengine/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-aOAE4a-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.log

___________________________________________________________________________________________________________________________________

Running setup.py install for flask-script

    error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt:
I was trying to install the below packages and I got the issue. Kindly help if you know Andrzej,

pip install flask
pip install flask-script
pip install WTForms
pip install mongoengine
pip install flask_mongoengine

creating /usr/local/lib/python2.7/dist-packages/flask_mongoengine

error: could not create '/usr/local/lib/python2.7/dist-packages/flask_mongoengine': Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-mongoengine/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-aOAE4a-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.log

___________________________________________________________________________________________________________________________________

Running setup.py install for flask-script

    error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt:

    running install
_________________________________________________________________________________________________________________________________________

copying flaskext/script.py -> /usr/local/lib/python2.7/dist-packages/flaskext

error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.log
    running install
_________________________________________________________________________________________________________________________________________

copying flaskext/script.py -> /usr/local/lib/python2.7/dist-packages/flaskext

error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.logej,

pip install flask
pip install flask-script
pip install WTForms
pip install mongoengine
pip install flask_mongoengine

creating /usr/local/lib/python2.7/dist-packages/flask_mongoengine

error: could not create '/usr/local/lib/python2.7/dist-packages/flask_mongoengine': Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-mongoengine/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-aOAE4a-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.log

___________________________________________________________________________________________________________________________________

Running setup.py install for flask-script

    error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt:

    running install
_________________________________________________________________________________________________________________________________________

copying flaskext/script.py -> /usr/local/lib/python2.7/dist-packages/flaskext

error: /usr/local/lib/python2.7/dist-packages/flaskext: Permission denied

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/rohit/build/flask-script/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-Nk3gHq-record/install-record.txt failed with error code 1

Storing complete log in /home/rohit/.pip/pip.log

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu flask Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Are you using sudo with these commands?

Revision history for this message
Rohith Kumar (rohithkumar-av) said :
#2

that is pip install. so I'm not using

--- On Mon, 13/8/12, actionparsnip <email address hidden> wrote:

From: actionparsnip <email address hidden>
Subject: Re: [Question #205673]: How to install the following packages for Flask.
To: <email address hidden>
Date: Monday, 13 August, 2012, 2:16 PM

Your question #205673 on gnome-nettool in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/205673

    Status: Open => Needs information

actionparsnip requested more information:
Are you using sudo with these commands?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/205673

You received this question notification because you asked the question.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

If you want to install the packages in the system area you have to raise your privilege level. So you have to use sudo.

sudo pip install flask
sudo pip install flask-script
etc.

Can you help with this problem?

Provide an answer of your own, or ask Rohith Kumar for more information if necessary.

To post a message you must log in.