简体   繁体   中英

Error while installing P4Python on windows

Configuration:

Machine: windows8 64-bit
Pyhton 2.7
Environment variable:
    PATH: %PATH%;C:\Python27
    PYTHONPATH: C:\Python27;C:\Python27\Lib;C:\Python27\DLLs;C:\Python27\Lib\lib-tk;

While installing P4Python 2.7, I got following message:

There was a problem tying to get the P4Python install path.

Possible reasons are:

1) Python is not installed.

2) An unsupported version or architecture of Python is installed.

3) The folder containing the Python executable is not in the system path.

4) Another version or architecture of Python is in the system path before the supported version or architecture.

5) The P4Python install paths are not writable.

I also tried installing P4Python 3.3 and got same message.

How to solve this error?

Try this:

https://swarm.workshop.perforce.com/download/guest/robert_cowham/perforce/utils/python/bin/p4python-2014.1.807760.win32-py2.7.exe

The installer from main site only work with P64-bit Python 3.3 .

I got this answer from perforce forum.

我也有同样的问题,然后不得不改为64位P4Python for 2.7和64 bit Python 2.7。

I suggest to completely uninstall the python 2.7 and earlier versions of python and reinstall it for 64-bit architecture. After installing goto Start->Python 2.7->IDLE would work fine

不要做我认为你出错的地方不要以这种方式设置路径有一个简单的方法这样做有一个简单的程序去做控制面板 - >系统和安全 - >系统 - >高级系统设置 - > advanced-> environment variables然后添加新路径相应地添加路径和vlues,如图所示

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM