Flask installation doesn't work properly

I'm using Merverick OSX. I have installed Python 3.3.3 Into my computer and I would like to install Flask

When I type this in terminal

$sudo easy_install virtualenv

terminal shows this error to me

error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install- 373.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /Library/Python/2.7/site-packages/ Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: http://peak.telecommunity.com/EasyInstall.html Please make the appropriate changes for your system and try again.

So I have access as root user and then type

$sudo easy_install virtualenv

and it says like this but there is a warning about *.egg what is that? something goes wrong? and how to fix it?

Last login: Wed Nov 13 16:10:17 on ttys000 Tammarats-MacBook-Air:~ Team$ su root Password: sh-3.2# $sudo easy_install virtualenv Searching for virtualenv Reading http://pypi.python.org/simple/virtualenv/ Best match: virtualenv 1.10.1 Downloading https://pypi.python.org/packages/source/v/virtualenv/virtualenv- 1.10.1.tar.gz#md5=3a04aa2b32c76c83725ed4d9918e362e Processing virtualenv-1.10.1.tar.gz Running virtualenv-1.10.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install- Nl7IVa/virtualenv-1.10.1/egg-dist-tmp-QGa1nR warning: no files found matching '*.egg' under directory 'virtualenv_support' warning: no previously-included files matching '*' found under directory 'docs/_templates' warning: no previously-included files matching '*' found under directory 'docs/_build' Adding virtualenv 1.10.1 to easy-install.pth file Installing virtualenv script to /usr/local/bin Installing virtualenv-2.7 script to /usr/local/bin Installed /Library/Python/2.7/site-packages/virtualenv-1.10.1-py2.7.egg Processing dependencies for virtualenv Finished processing dependencies for virtualenv sh-3.2#


Every time when we meet anything we cannot undestand like this, we should read the explainin detail。 did you find the "WARNING", it tell you it's not error; and

Installed /Library/Python/2.7/site-packages/virtualenv-1.10.1-py2.7.egg Processing dependencies for virtualenv Finished processing dependencies for virtualenv

tell the truth is that you have installed virtualenv successfully. Now you can according the docs given by Flask, learn Flask;


An issue is that the easy_install that is on the path is The Apple supplied one for python 2.7, so you have installed flask for python 2.7

You need to guve the explicit path to the python 3.3 version.

Also virtualenv is part of 3.3 see the python docs soyou do not need to install it.


For install vertualenv run this command : sudo apt-get install python-virtualenv </b> and Flask installation follow these: http://flask.pocoo.org/docs/installation/ or http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world .


  • How to get the username in MinGW?
  • PySide's shiboken python module not found
  • ImportError: No module named zlib; tox
  • const char * to std::basic_iostream
  • How to set table column widths to the longest value, excluding header
  • Docking in QtQuick
  • OpenCV installed but not linked error message on OS-X Mavericks
  • Error : “Transport endpoint is already connected”
  • Very quick, easy, webpage with increment/decrement
  • Crontab issues with python script
  • Yii2-user: How to create admin user in batch mode?
  • Flask installation doesn't work properly
  • Can I have a macro run whenever I save a file in Visual Studio 2005?
  • Why does 'import x;x.y' behave different from 'from x import y', and the first o
  • ERROR: function unnest(integer[]) does not exist in postgresql
  • how to delete duplicate lines in a file in Python
  • Float stacking css
  • How to place borders between lines of a wrapping, horizontal multi-line menu?
  • How can I refresh a NSFetchedResultsController?
  • How to Stop Gmail from maximizing an iFrame?
  • Using TSQL to Unzip a value
  • How can I get the key Values in a JSON array in ruby?
  • Autoloading classes when not in same directory as zend library
  • Is there any way to detect if a user agent is from a browser or an app?
  • request: minimal framework for web-apps
  • Overlay while loading page into QWebView
  • Need to display user's choices realtime in magento
  • FolderBrowserDialog crashes the application
  • cannot run python script file using windows prompt
  • ScraperWiki: How to create and add records with autoincrement key
  • Scroll down whole browser window
  • time_t conversion format question
  • iOS9 PayPal SDK - “An SSL error has occurred…”
  • longest common subsequence: why is this wrong?
  • Installing a python package in a desired folder
  • Can I update/select from a table in one query?
  • Tools for understanding HTML layout
  • How to make R's read_csv2() recognise the text characters properly
  • php design question - will a Helper help here?
  • How do I use LINQ to get all the Items that have a particular SubItem?