V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
saximi
V2EX  ›  Python

请教关于 WIN7+anaconda3 环境下安装 cffi 包的问题

  •  
  •   saximi · Oct 30, 2017 · 4050 views
    This topic created in 3111 days ago, the information mentioned may be changed or developed.
    WINDOWS7、PYTHON3.6.2 环境,安装了 anaconda3。下载了 cffi-1.11.2-cp36-cp36m-win_amd64.whl 包,用 pip install cffi-1.11.2-cp36-cp36m-win_amd64.whl 命令安装时报如下错误:

    File "d:\Anaconda3\lib\shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
    PermissiError: [Errno 13] Permission denied: 'd:\\Anaconda3\\Lib\\site-packages\\_cffi_backend.cp36-win_amd64.pyd'

    恳请大家指点,这要如何解决呢,谢谢!
    4 replies    2017-10-30 22:06:45 +08:00
    Kisesy
        1
    Kisesy  
       Oct 30, 2017
    你可以把 whl 里的文件直接解压到 site-packages 里
    saximi
        2
    saximi  
    OP
       Oct 30, 2017
    @Kisesy 感谢! 这么说来,whl 包的安装其实不是必须的,我只要从某台机器上把 site-packages 目录下的东西拷贝到另外一台机器,也就等于安装完毕了对吧?
    Kisesy
        3
    Kisesy  
       Oct 30, 2017
    有些包安装的时候会生成执行程序,如果你用不到的话,可以直接复制 site-packages 里的东西
    你的那个错误,一般是_cffi_backend 被进程占用了,安装时写不了文件,所以再解压覆盖一次比较保险
    lll9p
        4
    lll9p  
       Oct 30, 2017
    anaconda3 里不是已经有 cffi 了吗?而且你的 jupyter 正在运行吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5758 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 01:41 · PVG 09:41 · LAX 18:41 · JFK 21:41
    ♥ Do have faith in what you're doing.