Sponsored Content
Top Forums Programming Ipython notebook and python virtualenv, permission Post 302930081 by yifangt on Tuesday 30th of December 2014 07:31:07 AM
Old 12-30-2014
Googled more and finally found similar problem with matplotlib in Mac OSX from this place, First peeked the file permission:
Code:
$ ls -al /usr/local/lib/python2.7/dist-packages/numpydoc-0.5-py2.7.egg/EGG-INFO/top_level.txt
-rw-r----- 1 root staff 9 Dec 28 13:03 /usr/local/lib/python2.7/dist-packages/numpydoc-0.5-py2.7.egg/EGG-INFO/top_level.txt

so I change the ownership of the file:
Code:
$ sudo chown myself:myself /usr/local/lib/python2.7/dist-packages/numpydoc-0.5-py2.7.egg/EGG-INFO/top_level.txt

Then ipython works now under regular account!
Code:
~/test $ ipython
Python 2.7.6 (default, Mar 22 2014, 22:59:56) 
Type "copyright", "credits" or "license" for more information.

IPython 2.3.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]:

However, I still do not understand the how that happened. Any elaboration is still needed. Thanks!
 

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
PYTHON(1)						    BSD General Commands Manual 						 PYTHON(1)

NAME
python, pythonw -- an interpreted, interactive, object-oriented programming language SYNOPSIS
python ... pythonw ... DESCRIPTION
To support multiple versions, the programs named python and pythonw now just select the real version of Python to run, depending on various settings. (As of Python 2.5, python and pythonw are interchangeable; both execute Python in the context of an application bundle, which means they have access to the Graphical User Interface; thus both can, when properly programmed, display windows, dialogs, etc.) The current supported versions are 2.6 and 2.7, with the default being 2.6. Use % man python2.6 % man python2.7 % man pythonw2.6 % man pythonw2.7 to see the man page for a specific version. Without a version specified, % man pydoc and the like, will show the man page for the (unmodified) default version of Python (2.6). To see the man page for a specific version, use, for example, % man pydoc2.7 CHANGING THE DEFAULT PYTHON
Using % defaults write com.apple.versioner.python Version 2.7 will make version 2.7 the user default when running the both the python and pythonw commands (versioner is the internal name of the version- selection software used). To set a system-wide default, replace 'com.apple.versioner.python' with '/Library/Preferences/com.apple.versioner.python' (admin privileges will be required). The environment variable VERSIONER_PYTHON_VERSION can also be used to set the python and pythonw version: % export VERSIONER_PYTHON_VERSION=2.7 # Bourne-like shells or % setenv VERSIONER_PYTHON_VERSION 2.7 # C-like shells % python ... This environment variable takes precedence over the preference file settings. 64-BIT SUPPORT Versions 2.6 and 2.7 support 64-bit execution (which is on by default). Like the version of Python, the python command can select between 32 and 64-bit execution (when both are available). Use: % defaults write com.apple.versioner.python Prefer-32-Bit -bool yes to make 32-bit execution the user default (using '/Library/Preferences/com.apple.versioner.python' will set the system-wide default). The environment variable VERSIONER_PYTHON_PREFER_32_BIT can also be used (has precedence over the preference file): % export VERSIONER_PYTHON_PREFER_32_BIT=yes # Bourne-like shells or % setenv VERSIONER_PYTHON_PREFER_32_BIT yes # C-like shells Again, the preference setting and environmental variable applies to both python and pythonw. USING A SPECIFIC VERSION
Rather than using the python command, one can use a specific version directly. For example, running python2.7 from the command line will run the 2.7 version of Python, independent of what the default version of Python is. One can use a specific version of Python on the #! line of a script, but that may have portability and future compatibility issues. Note that the preference files and environment variable that apply to the python command, do not apply when running a specific version of Python. In particular, running python2.6 will always default to 64-bit execution (unless one uses the arch(1) command to specifically select a 32-bit architecture). SEE ALSO
python2.6(1), python2.7(1), pythonw2.6(1), pythonw2.7(1), arch(1) BSD
Aug 10, 2008 BSD
All times are GMT -4. The time now is 06:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy