I am trying to run a python script using WebJob in Azure. But I am getting module is not found. When I tried to run the pip command it says Access denied
Also I tried to change the folder permission using os.chmod
. But it gives:
[11/11/2016 18:17:35 > e1c140: ERR ] chmod: changing permissions of 'D:\Python27\Lib\site-packages/setuptools/....pyc': Permission denied
[11/11/2016 18:17:38 > e1c140: INFO] error: could not create 'D:\Python27\Lib\site-packages\mpns': Access is denied
I even tried --user
option.
def install(pack):
pip.main(['install', "--user", pack])
Is there option to install the modules (beautifulsoup, mechanize , python-mpns)
I manually copied the modules using the FTP connection to the folder and tried to execute python setup.py install
. Even this fails.