If you are installing a Python package such as Pyro 3 on to a machine that already has Python 2.x installed,
then:
on Windows 7:
you need to make sure that Python itself was originally installed at the root level of the drive.
For example, at the location C:\Python27
and NOT under the directory C:\Program Files OR C:\Program Files (x86)
This is because the built in protection mechanism that Windows 7 uses to protect the contents of these directories, will cause the Python package installation to fail.
In particular this occurs when using the distutils method of installation:
python setup.py install
on Ubuntu:
On Ubuntu, you may also encounter a similar error, when trying to install a Python package:
python setup.py install
...
error: /usr/local/bin/pyro-esd: Operation not permitted
then:
on Windows 7:
you need to make sure that Python itself was originally installed at the root level of the drive.
For example, at the location C:\Python27
and NOT under the directory C:\Program Files OR C:\Program Files (x86)
This is because the built in protection mechanism that Windows 7 uses to protect the contents of these directories, will cause the Python package installation to fail.
In particular this occurs when using the distutils method of installation:
python setup.py install
on Ubuntu:
On Ubuntu, you may also encounter a similar error, when trying to install a Python package:
python setup.py install
...
error: /usr/local/bin/pyro-esd: Operation not permitted
The solution is to use the sudo tool to gain extra privileges:
sudo python setup.py install
Comments
Post a Comment