腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
将
python
2.7转
换为
python
3.8
我的团队有很多用
Python
2.7编写的脚本。现在我们必须将它升级到
Python
3.8。我找到了这个链接,它对我有用。不幸的是,我的公司政策不允许使用在线工具,因此我必须想出其他的解决方案。
浏览 1
提问于2020-04-08
得票数 3
回答已采纳
2
回答
如何转
换为
Python
3
、
、
我正在将
Python
2代码转
换为
Python
3
的过程中。目前,我在将下面的代码转
换为
Python
3
时遇到了困难。请帮助。
浏览 5
提问于2022-11-17
得票数 -7
4
回答
如何在PyQt4中创建QString?
、
、
>>> from PyQt4 import QtCoreAttributeError: 'module' object has no attribute 'QString' AttributeError: 'module' object has no attribute 'QString' 为什么不能像文档中指定
浏览 0
提问于2009-09-09
得票数 17
回答已采纳
2
回答
Python
3
.x导入错误SyntaxError
、
、
、
在导入builtwith时,我得到以下错误:
Python
3.5.2 |Anaconda 4.2.0 (x86_64)| (defaultTraceback (most recent call last): File "/Users/danielotero/anaconda
3
/lib/
浏览 10
提问于2016-11-30
得票数 2
回答已采纳
1
回答
在Windows的
python
3.8上安装Django
、
我试图通过命令pip install django在
python
3.8上安装django,但我得到了一个错误: Could not find a version that satisfies the
浏览 4
提问于2021-02-15
得票数 0
2
回答
使用
Python
3
代码在VIM上获取EOFError
、
、
我是一个初学者,遇到了以下问题:每当我在VIM上执行以下脚本(我使用的是
Python
3.6): print("This program illustrates a chaotic1: Traceback (most recent call last): File "<stdin>", line
3
,
浏览 2
提问于2017-01-11
得票数 0
1
回答
RaspberryPi: ImportError:在Geany中没有名为cv2的模块
、
、
、
我在RaspberryPi (使用链接)中安装了opencv,在和
python
3
(空闲)中进行了导入。它没有显示这两个错误,如下图所示。
浏览 0
提问于2019-06-17
得票数 1
回答已采纳
1
回答
将.
3
gp文件写入.wav格式
python
服务器
、
、
、
、
我需要记录一个来自Android前端的.
3
gp音频文件,使用
python
服务器后端将其转
换为
.wav音频以供进一步处理。任何建议的方法或库将.
3
gp音频转换成.wav音频格式?werkzeug.utils.secure_filename(audiofile.filename) 我现在使用这个代码,它以.
3
gp
浏览 7
提问于2021-04-28
得票数 1
回答已采纳
4
回答
OpenCV -
Python
3.5上的文档图像去扭曲脚本
、
、
我没有使用
python
的经验,我已经下载了WinPython (),它包括scipy,numpy和pillow,还按照这里的说明安装了
Python
3.2forPython3.5:。
浏览 1
提问于2017-02-01
得票数 3
7
回答
Python
3.3:支持文本挖掘的ImportError -1.0
、
当我输入的时候在
python
3.3shell中,我得到了这样的消息: File "<pyshell#0>", line 1, in <module> File "C:\
Python
33\lib\site-packages\textmining\__init
浏览 0
提问于2013-03-30
得票数 2
1
回答
Cython扩展与
Python
2不兼容。
、
、
('ascii') 60 free(result) 我在
Python
3
上没有这个错误,我想在
Python
2上使用这个扩展。
浏览 1
提问于2018-12-16
得票数 0
回答已采纳
1
回答
MatplotLib-cpp错误: show意外不是PyFunction
、
、
、
CMAKE_CXX_FLAGS} -std=c++11 -g -ftest-coverage -fprofile-arcs" )find_package (
Python
3
COMPONENTS Interpreter NumPy)link_libraries(C:/
Python
37/libs
浏览 34
提问于2020-04-07
得票数 0
回答已采纳
9
回答
如何在
python
中正确地使用2-
3
?
、
、
、
我在
python
2.7中有一些代码,我想将其全部转
换为
python
3.3代码。我知道2到
3
可以使用,但我不知道具体如何使用它。
浏览 9
提问于2013-12-08
得票数 72
回答已采纳
3
回答
http请求的
Python
2到
Python
3
转换
、
、
、
、
我是
Python
的新手。我正在尝试将
Python
2代码转
换为
Python
3
。build_opener(urllib2.HTTPCookieProcessor(cj))我已经将这些行转
换为
浏览 1
提问于2013-06-01
得票数 0
1
回答
可以使用分发setuptool将
Python
2包转
换为
Python
3
吗?
、
、
、
浏览 0
提问于2010-05-06
得票数 0
回答已采纳
1
回答
如何在ubuntu14.04服务器中使用
Python
3.5的pip
3
安装包
、
、
Ubuntu14.14服务器本身默认安装了
Python
3.4,但是,对于某些包,我需要使用
Python
3.5。所以我自己安装。请给我介绍一下如何在Ubuntu上正确使用
Python
3.5。非常感谢任何好的建议!
浏览 0
提问于2016-11-20
得票数 0
回答已采纳
1
回答
如何在Amazon Linux2AMI EC2上安装Scrapy Docker Container
、
、
、
/appRUN yum -y install
python
3
RUN yum install
python
-devellibxslt-devel -yRUN yum install libffi libffi-devel -yRUN pip
3</
浏览 16
提问于2019-01-10
得票数 0
回答已采纳
3
回答
在
python
中用6替换5
我在
python
中找到了一个用6修改数字5的程序,但问题是我在
python
2中得到了它,如果我在
python
3
中更改它并重新运行它,就会产生奇怪的输出。
python
2代码的来源是 def convert5to6rec(num): 预期产量应该是620
浏览 2
提问于2017-10-30
得票数 0
回答已采纳
1
回答
使用Pycharm导入模块的困难
、
PyCharm中调试时,我都会我正在windows上运行
python
3.5
浏览 1
提问于2017-02-10
得票数 0
1
回答
将excel字符串解析为
python
、
、
我想在excel中存储一个字符串值,例如'1','2',然后在
python
中解析它作为计算数组。
Python
将该值作为字符串接受,但当我尝试将该值转
换为
int或float时,我遇到一条值错误消息,指出
python
无法将其转
换为
字符串或浮点数 在
python
['1','2','
3
']中从Excel['1','2','<em
浏览 0
提问于2014-03-22
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券