python - 在没有管理员权限的 Windows 上安装 python 模块

标签 python windows installation admin-rights

我的工作笔记本电脑没有管理员权限。在我的机器上安装了 python 和 pip,版本号如下:

C:\Users\banand\AppData\Local\Programs\Python\Python36\Scripts>python --version
Python 3.6.1

C:\Users\banand\AppData\Local\Programs\Python\Python36\Scripts>pip --version
pip 9.0.1 from c:\users\banand\appdata\local\programs\python\python36\lib\site-packages (python 3.6)

我需要一种方法来利用在线提供的各种 python 模块。一个例子是 - colorama

按照说明,我尝试了以下命令但没有成功:
C:\Users\banand\AppData\Local\Programs\Python\Python36\Scripts>pip install colorama --user
Collecting colorama
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D431204F28>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/colorama/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D431204A58>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/colorama/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D431204780>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/colorama/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D431204BA8>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/colorama/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000001D431204898>: Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',)': /simple/colorama/
  Could not find a version that satisfies the requirement colorama (from versions: )
No matching distribution found for colorama

我相信这与以下事实有关 -
一种。我没有管理员权限,或者
湾。我在防火墙后面,因此正在执行某种阻止

我想在这里找出确切的问题,然后回答这个问题——有没有办法绕过这些限制并有一个可重复的方法来安装 python 模块。

请注意,我正在使用公司笔记本电脑并出于兴趣学习 Python,因此我不想继续请求管理员权限,也不想陷入任何麻烦,因为我试图做一些不应该进行试验的事情我的笔记本电脑。

任何帮助是极大的赞赏。

最佳答案

该帖子已有 7 个月的历史,但这可以帮助其他人。
这在没有管理员权限的 Windows 10 Pro 上对我有用:
python.exe -m pip 安装

关于python - 在没有管理员权限的 Windows 上安装 python 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51490700/

相关文章:

c# - WPF 是否仍然相关,我可以在我的 C# Windows 应用程序中使用它吗?

windows - 输入文件中的 set/p 仅适用于批处理文件中的第一行

c++ - 如何在VS 2019或CLion Project中使用 "webrtc.lib"静态库?

Wix 主要升级,我做错了什么?

python - 从 Pandas DataFrame 中清除 CSS 样式 block

python - 属性错误 : module 'tensorflow_core.compat.v1' has no attribute 'contrib'

windows - 在用户文件夹中安装 PostgreSQL 数据

delphi - 在哪里可以找到许多Delphi 7软件包?

python - 如何从变量中获取数据并将其放入另一个变量中

python - 如何计算每组中最常见的组合