gpt4 book ai didi

python - 如何更改Python 2.7安装包文件夹

转载 作者:可可西里 更新时间:2023-11-01 10:26:31 27 4
gpt4 key购买 nike

我想安装 PyPDF2 包 ( https://github.com/knowah/PyPDF2 )

我在 Windows 上,所以我是这样进行的:

setup.py 安装

但我收到此消息错误:

running install
running build
running build_py
running install_lib
creating C:\Program Files\Python\Python27\Lib\site-packages\PyPDF2
error: could not create "C:\Program Files\Python\Python27\Lib\site-packages\PyPDF2" : Access is denied

我对我的硬盘 G 有权限,但是我在 setup.py 文件中找不到这个 windows 路径。你知道我可以更改这条路径吗?

非常感谢

最佳答案

改为尝试 setup.py install --user

关于python - 如何更改Python 2.7安装包文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15503922/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com