如何在没有管理员权限的情况下安装pywin32?
How to install pywin32 without admin rights?
我想在 Python 版本 3.7.4 上使用库 win32com,但我没有管理员权限(我相信只有用户管理员权限)。
我还安装了 2.7.15 版本(我无法卸载),这是我第一次尝试 Python 时获得的管理员权限。这是当我在 cmd 控制台上 运行 命令 python --version
时显示的版本,所以如果我尝试 运行 命令 python -m pip install pywin32
它会安装但在那个版本上并且发出警告,它将在 2020 年 1 月 1 日弃用。
所以我尝试按照 these instructions. I downloaded pywin32-225-cp37-cp37m-win32.whl (8.4 MB), unzipped to a folder 手动执行此操作,但现在我不确定该怎么做。
Python 文件夹位于:
%UserProfile%\AppData\Local\Programs\Python\Python37-32
通过传递 --user:
在用户目录中安装包
"${FULL_PATH_TO_YOUR_PYTHON37_EXECUTABLE}" -m pip install --user pywin32
其中 ${FULL_PATH_TO_YOUR_PYTHON37_EXECUTABLE}
只是一个占位符 (在你的情况下它似乎是 C:\Users\MyUserName\AppData\Local\Programs\Python\Python37-32\python.exe).
有关 [PyPA.PIP]: pip install (pip install -h
) 的更多详细信息。
注意:这是 的副本,但由于该问题既没有被接受的答案也没有被赞成的答案,因此我无法将其标记为这样。
我想在 Python 版本 3.7.4 上使用库 win32com,但我没有管理员权限(我相信只有用户管理员权限)。
我还安装了 2.7.15 版本(我无法卸载),这是我第一次尝试 Python 时获得的管理员权限。这是当我在 cmd 控制台上 运行 命令 python --version
时显示的版本,所以如果我尝试 运行 命令 python -m pip install pywin32
它会安装但在那个版本上并且发出警告,它将在 2020 年 1 月 1 日弃用。
所以我尝试按照 these instructions. I downloaded pywin32-225-cp37-cp37m-win32.whl (8.4 MB), unzipped to a folder 手动执行此操作,但现在我不确定该怎么做。
Python 文件夹位于:
%UserProfile%\AppData\Local\Programs\Python\Python37-32
通过传递 --user:
在用户目录中安装包"${FULL_PATH_TO_YOUR_PYTHON37_EXECUTABLE}" -m pip install --user pywin32
其中 ${FULL_PATH_TO_YOUR_PYTHON37_EXECUTABLE}
只是一个占位符 (在你的情况下它似乎是 C:\Users\MyUserName\AppData\Local\Programs\Python\Python37-32\python.exe).
有关 [PyPA.PIP]: pip install (pip install -h
) 的更多详细信息。
注意:这是