在本文中,我们将给您介绍关于尝试为Windows扩展安装Python时出现值错误的详细内容,并且为您解答尝试安装此扩展程序时出现以下警告的相关问题,此外,我们还将为您提供关于pythonwindows
在本文中,我们将给您介绍关于尝试为Windows扩展安装Python时出现值错误的详细内容,并且为您解答尝试安装此扩展程序时出现以下警告的相关问题,此外,我们还将为您提供关于python windows下安装pip、python – 在Windows 7中安装py-bcrypt时编译器错误、Python--windows下安装python、python-2.7 – 无法安装PythonMagick Windows 7的知识。
本文目录一览:- 尝试为Windows扩展安装Python时出现值错误(尝试安装此扩展程序时出现以下警告)
- python windows下安装pip
- python – 在Windows 7中安装py-bcrypt时编译器错误
- Python--windows下安装python
- python-2.7 – 无法安装PythonMagick Windows 7
尝试为Windows扩展安装Python时出现值错误(尝试安装此扩展程序时出现以下警告)
我已经安装了Microsoft Visual Studio
2008。我下载了适用于Windows扩展的zip文件Python并将其内容提取到我的Python27文件夹中。现在有一个名为pywin32-214的子文件夹。(这是32部分的问题吗?我使用的是64位系统。)以下是命令行的文字记录:
C:\Python27\pywin32-214>setup.py -q install
Building pywin32 2.7.214.0
Traceback (most recent call last):
File "C:\Python27\pywin32-214\setup.py",line 2152,in <module>
('',('pywin32.pth',)),File "C:\Python27\lib\distutils\core.py",line 152,in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py",line 953,in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py",line 972,in run_command
cmd_obj.run()
File "C:\Python27\pywin32-214\setup.py",line 1251,in run
install.run(self)
File "C:\Python27\lib\distutils\command\install.py",line 563,in run
self.run_command('build')
File "C:\Python27\lib\distutils\cmd.py",line 326,in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py",line 596,in run
build.run(self)
File "C:\Python27\lib\distutils\command\build.py",line 127,in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py",in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build_ext.py",line 340,in run
self.build_extensions()
File "C:\Python27\pywin32-214\setup.py",line 858,in build_extensions
self.compiler.initialize()
File "C:\Python27\lib\distutils\msvc9compiler.py",line 383,in initialize
vc_env = query_vcvarsall(VERSION,plat_spec)
File "C:\Python27\lib\distutils\msvc9compiler.py",line 299,in query_vcvarsal
l
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
我不知道该怎么做。救命?
python windows下安装pip
上篇文章中我们安装了easy_install.exe
接着使用easy_install.exe安装pip
直接使用命令行:
easy_install.exe pip
结果如上图则表示安装成功。
pip安装成功后,在cmd下执行pip,将会有如下提示
python – 在Windows 7中安装py-bcrypt时编译器错误
我需要安装Flask模块flask-bcrypt,它需要py-bcrypt.当我尝试安装它时,发生错误:
C:\Users\Param\Downloads\py-bcrypt-0.3>python setup.py install
running install
running bdist_egg
running egg_info
writing py_bcrypt.egg-info\PKG-INFO
writing top-level names to py_bcrypt.egg-info\top_level.txt
writing dependency_links to py_bcrypt.egg-info\dependency_links.txt
reading manifest file 'py_bcrypt.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'py_bcrypt.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
error: don't kNow how to compile C/C++ code on platform 'nt' with 'MinGW32' comp
iler
是什么导致了这个问题?
以前,我在我的Windows 7 64位机器上安装了MinGW32.问题是因为MinGW是32位而Windows是64位吗?如果是这样,我该怎么做才能解决这个问题? (如何在我的机器中使用MinGW 64位?)
您只需将它放入flask / scripts / python包文件夹中即可.
在Flask subreddit中有一个位置可以下载您需要的库:
http://www.reddit.com/r/flask/comments/15q5xj/anyone_have_a_working_version_of_flaskbcrypt_for/
Python--windows下安装python
最近有爬虫方面的需求,就学习下python。windows安装python步骤如下
1.下载python
python官网下载路径:https://www.python.org/downloads/release/python-372/
由图可知,我下载的是3.7.2版本。
2.安装python
python的安装非常简单,双击exe文件,选中 Add Python 3.7 to PATH,后续一直点击下去就行了。
3.使用python
在windows控制台中输入 python,详见如下图
出现如上界面,说明python安装成功。同时进入了python交互式环境中,此时可以输入python代码,回车即可得到执行结果。输入exit()并回车,即可退出python交互环境。
4.python解释器
当我们编写python代码时,得到的是一个包含python代码且以 .py 为扩展名的文本文件。要运行python代码,就必须要python解释器去执行.py文件。常用的python解释器是CPython,当我们从官网下载python之后,解释器也一并自带下载了,所以CPython也是官方指定解释器。
5.第一个python程序
在python交互式环境中输入python代码是练习使用的,实际开发过程中编写的代码肯定需要保存,我这里新建一个.py扩展名结尾的python文件,路径:E:\workSpace\test.py。在cmd中执行该文件如下
6.python输入输出
python的输出采用print()函数,在括号中加上字符串就行,例如:print(''hello python'')。
输入采用input()函数。
python-2.7 – 无法安装PythonMagick Windows 7
解决方法
只需按照this link下载适用于Python解释器的正确安装程序(在您的情况下,它将是pythonmagick-0.9.10.win-amd64-py2.7.exe或pythonmagick-0.9.10.win32-py2.7.exe,取决于您是否安装了64位或32位Python解释器).
今天关于尝试为Windows扩展安装Python时出现值错误和尝试安装此扩展程序时出现以下警告的分享就到这里,希望大家有所收获,若想了解更多关于python windows下安装pip、python – 在Windows 7中安装py-bcrypt时编译器错误、Python--windows下安装python、python-2.7 – 无法安装PythonMagick Windows 7等相关知识,可以在本站进行查询。
本文标签: