How can i run Jupyter notebook in admin privilege?

白昼怎懂夜的黑 提交于 2020-01-02 08:22:24

问题


Because of API I need to run Python with admin privileges.

I can run Anaconda or PyCharm with admin privileges by click running by admin privilege.

But how can I run Python on Jupyter notebook with admin privileges?


回答1:


I assume you are in a Windows environment.

You can run cmd with admin privilege then run jupyter notebook.

  1. Type cmd in the start menu

  2. Right click on Command Prompt and click Run as administrator

  3. Type jupyter notebook in cmd and press enter

Please use this with caution as admin privilege is not something you want to use for every automation.




回答2:


If you have installed or Added Jupyter Notebook or the Anaconda bundle as a PATH environment variable, you can access Jupyter Notebook as a executable file. Therefore, Search: Jupyter Notebook --> Right click, Run as Administrator.

Now that you have admin access, you can modify/update package installer functions such as 'pip' from PyPI.



来源:https://stackoverflow.com/questions/43248141/how-can-i-run-jupyter-notebook-in-admin-privilege

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!