anaconda python3.6安装办法,使用Anaconda Python3.6在Windows 7上安装Kivy

我正试图在我的windows7个人电脑上安装Kivy,用python开发Android。在

我得到以下错误

python -m pip install kivy

第一个错误C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\OEM\Anaconda3\libs /LIBPATH:C:\Users\OEM\Anaconda3\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB\amd64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10586.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.10586.0\um\x64" /EXPORT:PyInit_buffer build\temp.win-amd64-3.6\Release\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\buffer.obj /OUT:build\lib.win-amd64-3.6\kivy\graphics\buffer.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\buffer.cp36-win_amd64.lib

buffer.obj : warning LNK4197: export 'PyInit_buffer' specified multiple times; using first specification

Creating library build\temp.win-amd64-3.6\Release\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\buffer.cp36-win_amd64.lib and object build\temp.win-amd64-3.6\Release\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\buffer.cp36-win_amd64.exp

Generating code

Finished generating code

cythoning C:\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics/context.pyx to C:\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\context.c

building 'kivy.graphics.context' extension

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\OEM\Anaconda3\include -IC:\Users\OEM\Anaconda3\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10586.0\winrt" /TcC:\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\context.c /Fobuild\temp.win-amd64-3.6\Release\Users\OEM\AppData\Local\Temp\pip-build-jmayz55y\kivy\kivy\graphics\context.obj

context.c

c:\users\oem\appdata\local\temp\pip-build-jmayz55y\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2

----------------------------------------

Running setup.py clean for kivy

Failed to build kivy

Installing collected packages: kivy

Running setup.py install for kivy: started

Running setup.py install for kivy: finished with status 'error'

Complete output from command C:\Users\OEM\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\OEM\\AppData\\Local\\Temp\\pip-build-jmayz55y\\kivy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\OEM\AppData\Local\Temp\pip-wg_pau0w-record\install-record.txt --single-version-externally-managed --compile:

Using distutils

Detected Cython version 0.25.2

This version of Cython is untested with Kivy. While this version may

work perfectly fine, it is possible that you may experience issues. If

you do have issues, please downgrade to a supported version. It is

best to use the newest supported version, 0.23, but the minimum

supported version is 0.20.

If your platform provides a Cython package, check if you can downgrade

to a supported version. Otherwise, uninstall the platform package and

install Cython via pip:

pip install -I Cython==0.23

User distribution detected, avoid portable command.

Windows platform detected, force GLEW usage.

Using this graphics system: OpenGL

WARNING: A problem occured while running pkg-config --libs --cflags gstreamer-1.0 (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

WARNING: A problem occured while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)

b"'pkg-config' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n"

第二个错误:

^{pr2}$

安装有什么问题?在

anaconda是一个流行的Python发行版,它包含了各种常用的Python工具和库,包括scikit-learn(也称为sklearn)。通过anaconda安装sklearn应该是一件非常简单的事情,但是有时候可能会遇到问题,例如安装一直在转圈。 首先,可以通过打开anaconda navigator并选择“environments”选项卡来检查是否已经安装了sklearn。在这里,可以看到已经安装了哪些包以及它们的版本。如果sklearn没有安装,可以在“channels”选项卡中搜索“scikit-learn”并单击“install”按钮来安装它。 如果anaconda无法安装sklearn这可能是因为网络连接发生了问题,可以尝试使用其他的网络连接,或者使用命令行安装sklearn。 在命令行中安装sklearn可以通过以下几个步骤: 1. 打开终端或命令行 2. 激活anaconda环境:conda activate myenv(myenv是你的环境名称) 3. 安装sklearn:conda install scikit-learn 这将会安装最新版本的sklearn库。 如果仍然遇到问题,可以尝试添加更新的镜像源以加速和改善下载文件的速度。 使用命令“pip install scikit-learn -i https://pypi.tuna.tsinghua.edu.cn/simple/”可以使用清华大学的镜像源来提高下载文件的速度,从而更快地安装sklearn。 总之,anaconda python3.6安装sklearn一直在转圈可能会因为网络问题或其他问题,但是可以通过检查系统和anaconda的设置、使用命令行安装以及添加其他镜像源等方法来解决。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值