Sponsored Content
Top Forums Programming Ipython notebook and python virtualenv, permission Post 302929919 by yifangt on Monday 29th of December 2014 12:32:08 AM
Old 12-29-2014
Ipython notebook and python virtualenv, permission

Hello,
I was playing with ipython-notebook and python virtualenv. I met a "permission denied Error" when I tried to run ipython notebook.
Code:
~/test $ ipython
Traceback (most recent call last):
  File "/usr/local/bin/ipython", line 5, in <module>
    from pkg_resources import load_entry_point

IOError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/numpydoc-0.5-py2.7.egg/EGG-INFO/top_level.txt'

But if I do under root account, it works fine, which seems not right anyhow.
I could not remember what I did at installation for either package and the related dependencies like numpy, scipy etc, but copy-paste those commands from website. Most of the time with sudo pip install or sudo easy_install for ipython notebook and python virtualenv.
I suspect there might be some conflict between ipython notebook and the virtualenv, or the path settings, but I am not sure how to ask the question. Googled for a couple of hours, no clue at all for this error. What may have caused this problem?
Thanks a lot!

Last edited by yifangt; 12-29-2014 at 01:33 AM.. Reason: Add more information
 

8 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Linux Notebook for $500

Balance 14.1" Notebook Computer with CD-ROM Drive (2 Replies)
Discussion started by: Perderabo
2 Replies

2. UNIX for Dummies Questions & Answers

Trying to find a notebook or desktop with....

a preloaded version of linux/unix on it for a realtively low price. I am looking to spend anywhere from Free-$800. I want to make sure its upgradeable so after i learn linux/unix/scripting and one of the programming languages i can update things and make them better. Assembly is not a problem i can... (10 Replies)
Discussion started by: Corrail
10 Replies

3. UNIX for Dummies Questions & Answers

Notebook UNIX systems

Hy folks, I was wondering what is best unix system for notebook (laptop) computers. Older or newer, faster or slower? What is you opinion and experiance with unix on notebook?v (6 Replies)
Discussion started by: R@LE
6 Replies

4. What is on Your Mind?

Which Notebook to buy

Hi Im not sure that i post that Thread here on the right place but i hope someone can help me. Im searching for a new Notebook with Linux or Unix as system. Im looking for a Notebook with the following components: Intel Core 2 for mobile min 2GB RAM 15 " Display none reflective ATI or NVidia... (6 Replies)
Discussion started by: MagicMike
6 Replies

5. UNIX for Dummies Questions & Answers

Which linux for older notebook PC?

Hey forum, Although I've been involved with IT for decades, as an old person I'm just getting my feet wet with Linux. I have an older IBM ThinkPad - 128MB, 20GB drive - and I want to delve into Linux on this machine. What distribution would you reccomend for this older machine? It'll be used... (1 Reply)
Discussion started by: mrkrieger
1 Replies

6. UNIX for Dummies Questions & Answers

Choosing a distribution for old 128MB Notebook

Well, the title says most of it - I have an old IBM Thinkpad 600X with 128MB ram and want to use it mostly as a netbook - web browsing, lite text editing and the like. I've tried a few distributions, but they all seem to choke on my limited memory. Before I download and burn another bunch... (2 Replies)
Discussion started by: mrkrieger
2 Replies

7. Ubuntu

Why they(one PC and a notebook) report bing in offline state?

Hi,all: Why they(one PC and a notebook) report bing in offline state? I directly link a PC with one notebook with a cross cable and all of them are on ubuntu 10.4.0.The only difference is that the PC are on kernel 3.0.4.When they startup information are showed respectively that... (0 Replies)
Discussion started by: liklstar
0 Replies

8. Hardware

HP notebook PC wifi card whitelist problem

I have hp dv6 and dv7 notebook pcs on which I want to upgrade the wifi cards but when I install the new cards and boot them, the they won't even boot to the bios and they both give me the same error: "104-Unsupported wireless network device detected. System Halted. Remove device and restart." When... (1 Reply)
Discussion started by: milhan
1 Replies
VIRTUALENV(1)															     VIRTUALENV(1)

NAME
virtualenv - create virtual Python instances SYNOPSIS
virtualenv [options...] [destination-directory] DESCRIPTION
virtualenv creates virtual Python executables, each of which can have its own set of installed modules. Programs that require different versions of modules or sets of modules that may be incompatible with others to be installed on the same system without conflicts. The result is a directory containing its own Python executables (in DIR/bin/pythonVER and DIR/bin/python) and its own module directory containing the standard library as installed by the system. Additional modules may be installed via setuptools, as invoked from the binary directory (DIR/bin/easy_install). The system's site-packages directories will not be available by default, but can be made visible with the --system-site-packages option. They can then be overridden with locally-installed modules. In addition, a shell script called "activate" will be installed in the bin directory. If sourced, this will cause normal invocations of the Python executable to use the virtual environment. By running the virtualenv command explicitly under the desired Python interpreter, the user can control which version of Python is created in the virtual environment. OPTIONS
-h, --help Show summary of options. --version Show the version of the program. -v, --verbose Be more verbose. -q, --quiet Be less verbose; suppress unimportant output. --clear Clear out a previously-created virtual Python instance in this location before creating a new one. -p PYTHON_EXE,--python=PYTHON_EXE The Python interpreter to use to create the new environment. --no-site-packages Ignored (the default). Don't give access to the global site-packages modules to the virtual environment. --system-site-packages Give access to the global site-packages modules to the virtual environment. --unzip-setuptools Unzip Setuptools or Distribute when installing it. --relocatable Make an EXISTING virtualenv environment relocatable. --distribute Ignored. Distribute is used by default. See --setuptools to use Setuptools instead of Distribute. --setuptools Use Setuptools instead of Distribute. Set environ variable VIRTUALENV_SETUPTOOLS to make it the default. --extra-search-dir=SEARCH_DIRS Directory to search for setuptools/distribute/pip distributions in. Can be specified multiple times. --never-download Never download anything from the network. Instead, fail if local distributions of setuptools/distribute/pip are not present. --prompt==PROMPT Provides an alternative prompt prefix for this environment. AUTHORS
This manual page was originally written by Jeff Licquia <licquia@debian.org>, later rewritten by Carl Chenet <chaica@ohmytux.com>. LICENSE
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, version 2 or any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. COPYRIGHT
Copyright (C) 2007 Jeff Licquia 12/02/2009 VIRTUALENV(1)
All times are GMT -4. The time now is 05:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy