Is this a Python path issue? -


i'm confused whether or not python path set correctly. i'm using ubuntu in corporate environment i've been installing packages/modules --user setting within virtualenv environment (i don't have admin or sudo privileges).

(my_env)xx@xx:~/environments$ pip install --user browsercookie requirement satisfied (use --upgrade upgrade): browsercookie in /home/myusername/.local/lib/python2.7/site-packages 

but when run file get:

importerror: no module named browsercookie 

other details:

(my_env)xx@xx:~/environments$ python /usr/share/anaconda/bin/python 

this message when install browsercookie:

(my_env)xx@xx:~/environments$ python <where setup files are>/setup.py install --user /usr/share/anaconda/lib/python2.7/distutils/dist.py:267: userwarning: unknown distribution option: 'install_requires'   warnings.warn(msg) running install running build running build_py package init file './__init__.py' not found (or not regular file) copying ./my_file.py -> build/lib/browsercookie package init file './__init__.py' not found (or not regular file) running install_lib copying build/lib/browsercookie/my_file.py -> /home/myusername/.local/lib/python2.7/site-packages/browsercookie byte-compiling /home/myusername/.local/lib/python2.7/site-packages/browsercookie/my_file.py my_file.pyc running install_egg_info writing /home/myusername/.local/lib/python2.7/site-packages/browsercookie-0.7.1-py2.7.egg-info 

and...

(my_env)xx@xx:~/environments$ pip /usr/share/anaconda/bin/pip (my_env)xx@xx:~/environments$ pip install browsercookie requirement satisfied (use --upgrade upgrade): browsercookie in /home/myusername/.local/lib/python2.7/site-packages 

new environment details:

xx@xx:~/environments$ virtualenv new_env new python executable in new_env/bin/python installing distribute.............................................................................................................................................................................................done. installing pip...............done. xx@xx:~/environments$ source new_env/bin/activate (new_env)xx@xx:~/environments$ virtualenv /usr/bin/virtualenv (new_env)xx@xx:~/environments$ pip /home/username/environments/new_env/bin/pip (new_env)xx@xx:~/environments$ python /home/username/environments/new_env/bin/python 

can point me in right direction?


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -