草庐IT

user_permissions

全部标签

python - 将 --user 与 --prefix 错误与 setup.py install 结合使用

我试图在我最近获得访问权限的系统上安装Python包。我试图利用Python相对较新的perusersite-packagesdirectory,以及新选项--user。(选项是currentlyundocumented,但它适用于Python2.6+;您可以通过运行pythonsetup.pyinstall--help查看帮助。)当我尝试运行时pythonsetup.pyinstall--user在我下载的任何包上,我总是收到以下错误:error:can'tcombineuserwithwithprefix/exec_prefix/homeorinstall_(plat)base这个

python - 将 --user 与 --prefix 错误与 setup.py install 结合使用

我试图在我最近获得访问权限的系统上安装Python包。我试图利用Python相对较新的perusersite-packagesdirectory,以及新选项--user。(选项是currentlyundocumented,但它适用于Python2.6+;您可以通过运行pythonsetup.pyinstall--help查看帮助。)当我尝试运行时pythonsetup.pyinstall--user在我下载的任何包上,我总是收到以下错误:error:can'tcombineuserwithwithprefix/exec_prefix/homeorinstall_(plat)base这个

python - 在我的 Mac 上以 root 身份运行 pip 时出现 "Permission Denied"

我已经开始使用我的Mac来安装Python包,就像在工作中使用我的WindowsPC一样;但是在我的Mac上,我在写入日志文件或站pip包时经常遇到permissiondenied错误。因此我想到了运行pipinstall在sudo下但是考虑到我只是希望将它安装在我当前的用户帐户下,这是安全/可接受的使用sudo吗?来自日志文件I/O错误的示例回溯:Command/usr/bin/python-c"importsetuptools;__file__='/Users/markwalker/build/pycrypto/setup.py';exec(compile(open(__file_

python - 在我的 Mac 上以 root 身份运行 pip 时出现 "Permission Denied"

我已经开始使用我的Mac来安装Python包,就像在工作中使用我的WindowsPC一样;但是在我的Mac上,我在写入日志文件或站pip包时经常遇到permissiondenied错误。因此我想到了运行pipinstall在sudo下但是考虑到我只是希望将它安装在我当前的用户帐户下,这是安全/可接受的使用sudo吗?来自日志文件I/O错误的示例回溯:Command/usr/bin/python-c"importsetuptools;__file__='/Users/markwalker/build/pycrypto/setup.py';exec(compile(open(__file_

python - "pip install --user ..."的目的是什么?

来自pipinstall--help:--userInstalltothePythonuserinstalldirectoryforyourplatform.Typically~/.local/,or%APPDATA%\PythononWindows.(SeethePythondocumentationforsite.USER_BASEforfulldetails.)site.USER_BASE的文档是我不理解的有趣*NIX主题的可怕虫洞。--user的目的是什么?为什么将软件包安装到~/.local/很重要?为什么不直接在我的$PATH中放置一个可执行文件?

python - "pip install --user ..."的目的是什么?

来自pipinstall--help:--userInstalltothePythonuserinstalldirectoryforyourplatform.Typically~/.local/,or%APPDATA%\PythononWindows.(SeethePythondocumentationforsite.USER_BASEforfulldetails.)site.USER_BASE的文档是我不理解的有趣*NIX主题的可怕虫洞。--user的目的是什么?为什么将软件包安装到~/.local/很重要?为什么不直接在我的$PATH中放置一个可执行文件?

python - pip 安装失败,出现 : OSError: [Errno 13] Permission denied on directory

pipinstall-rrequirements.txt失败,出现以下异常OSError:[Errno13]Permissiondenied:'/usr/local/lib/...。出了什么问题,我该如何解决?(我正在尝试设置Django)Installingcollectedpackages:amqp,anyjson,arrow,beautifulsoup4,billiard,boto,braintree,celery,cffi,cryptography,Django,django-bower,django-braces,django-celery,django-crispy-for

python - pip 安装失败,出现 : OSError: [Errno 13] Permission denied on directory

pipinstall-rrequirements.txt失败,出现以下异常OSError:[Errno13]Permissiondenied:'/usr/local/lib/...。出了什么问题,我该如何解决?(我正在尝试设置Django)Installingcollectedpackages:amqp,anyjson,arrow,beautifulsoup4,billiard,boto,braintree,celery,cffi,cryptography,Django,django-bower,django-braces,django-celery,django-crispy-for

java - PostgreSQL 错误 : canceling statement due to user request

postgresql中出现此错误的原因是什么?org.postgresql.util.PSQLException:ERROR:cancelingstatementduetouserrequest我的软件版本:PostgreSQL9.1.6onx86_64-redhat-linux-gnu,由gcc(GCC)4.7.220120921(RedHat4.7.2-2)编译,64-bit"。我的postgresql驱动是:postgresql-9.2-1000.jdbc4.jar使用java版本:Java1.7提示:我的postgresql数据库位于固态硬盘上,此错误是随机发生的,有时根本不会

java - PostgreSQL 错误 : canceling statement due to user request

postgresql中出现此错误的原因是什么?org.postgresql.util.PSQLException:ERROR:cancelingstatementduetouserrequest我的软件版本:PostgreSQL9.1.6onx86_64-redhat-linux-gnu,由gcc(GCC)4.7.220120921(RedHat4.7.2-2)编译,64-bit"。我的postgresql驱动是:postgresql-9.2-1000.jdbc4.jar使用java版本:Java1.7提示:我的postgresql数据库位于固态硬盘上,此错误是随机发生的,有时根本不会