当我发布我的天蓝色云函数时,我收到消息:
本地 python 版本“3.9.7”与部署的 Function App 的预期版本不同。这可能会导致 Azure Functions 中出现“ModuleNotFound”错误。请创建版本 3.9 的 Python 函数应用程序或更改本地计算机上的虚拟环境以匹配“Python | 3.8”。
如何将版本更改为3.9?
他们是如何做到的呢?我也可以将自己的新运算符添加到 Python 3 中吗?我在谷歌上搜索,但没有找到任何这方面的信息。
我想读取通过表单发布请求发送到烧瓶服务器的特定类型的 zip 文件中的所有文件,而不必将 zip 文件存储在磁盘上。
我今天刚刚安装了 julia,我尝试添加图像包,但它不起作用。它确实获取到 100%。然后它继续获取大约 4 分钟,没有发生这样的事情:
(@v1.4) pkg> add Images
Cloning default registries into `C:\Users\Quinten Cabo\.julia`
Cloning registry from "https://github.com/JuliaRegistries/General.git"
Fetching: [========================================>] 100.0 %
Run Code Online (Sandbox Code Playgroud)
然后 4 分钟后,我收到此错误:
Cloning default registries into `C:\Users\Quinten Cabo\.julia`
Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: SystemError: opening file "C:\\Users\\Quinten Cabo\\.julia\\registries\\General\\Registry.toml": No such file or directory
Stacktrace:
[1] systemerror(::String, ::Int32; extrainfo::Nothing) at .\error.jl:168
[2] #systemerror#50 at .\error.jl:167 [inlined]
[3] systemerror at .\error.jl:167 [inlined]
[4] open(::String; read::Bool, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at .\iostream.jl:254
[5] open(::String, ::String) at .\iostream.jl:310
[6] open(::typeof(Pkg.TOML.parse), …Run Code Online (Sandbox Code Playgroud) 我按照指南让我的 python flask 应用程序运行,我在最后一步用 certbot 将 http 更改为 https。但是当我运行我的 certbot 命令时,sudo certbot --nginx -d domainname -d www.domainname我得到ModuleNotFoundError: No module named '_cffi_backend'
整个错误是:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/home/mc-obfuscator/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/home/mc-obfuscator/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2859, in load_entry_point
return ep.load()
File "/home/mc-obfuscator/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
return self.resolve()
File "/home/mc-obfuscator/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 10, in …Run Code Online (Sandbox Code Playgroud)