Add new Lib path instance in Python

Source: Internet
Author: User
Tags zip in python
  code is as follows copy code


Python 2.6.3 (r263rc1:75186, OCT 2 2009, 20:40:30) [MSC v.1500 bit (Intel)]
On Win32
Type ' help ', ' copyright ', ' credits ' or ' license ' for the more information.
>>> Import Sys
>>> Sys.path
[', ' C:\Python26 ', ' C:\Windows\system32\python26.zip ', ' C:\Python26\DLLs ',
' C:\Python26\lib ', ' C:\Python26\lib\plat-win ', ' C:\PYTHON26\LIB\LIB-TK '
, ' C:\Python26\lib\site-packages ']
>>> sys.path.append (' C:\Path ')
>>> Sys.path
[', ' C:\Python26 ', ' C:\Windows\system32\python26.zip ', ' C:\Python26\DLLs ',
' C:\Python26\lib ', ' C:\Python26\lib\plat-win ', ' C:\PYTHON26\LIB\LIB-TK '
, ' C:\Python26\lib\site-packages ', ' C:\Path ']

There is also the modification of environment variables. Add a Pythonpath
Windows is more annoying than having a space problem.
Add a variable inside the system variable Pythonpath
Values are:

The code is as follows Copy Code

1.c:\program Files (x86) \google\google_appengine; C:\Program Files (x86)

\GOOGLE\GOOGLE_APPENGINE\LIB\ANTLR3; C:\Program Files (x86)

\google\google_appengine\lib\django; C:\Program Files (x86)

\google\google_appengine\lib\webob; C:\Program Files (x86)

\google\google_appengine\lib\yaml\lib; C:\Program Files (x86) \google\google_appengine;

There is still a problem with Gae execution, save Modle, say no app ID. Cough.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.