小编nek*_*orp的帖子

在 MACOS 上安装 python 2.7.8 的 pyenv 失败

我尝试为使用此 python 版本的项目安装 python 2.7.8。

但是当我使用命令时:

$ pyenv install 2.7.8 
Run Code Online (Sandbox Code Playgroud)

我有这个错误消息:

python-build: use openssl from homebrew 
python-build: use readline from homebrew 
Downloading Python-2.7.8.tar.xz...
-> https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz 
Installing Python-2.7.8... 
patching file ./Lib/site.py 
patching file ./Lib/ssl.py 
patching file ./Modules/_ssl.c 
python-build: use readline from homebrew ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
        
Please consult to the Wiki page to fix the problem. 
https://github.com/pyenv/pyenv/wiki/Common-build-problems
        
BUILD FAILED (OS X 10.13.6 using python-build 20180424)
        
Inspect or clean up the working tree at …
Run Code Online (Sandbox Code Playgroud)

python macos pyenv

6
推荐指数
0
解决办法
5982
查看次数

Python 2.7.9 Mac OS 10.10.3消息"setCanCycle:不推荐.请改用setCollectionBehavior"

这是我的第一条消息,我希望你能帮助我解决我的问题.

当我启动python脚本时,我有这样的消息:

2015-06-10 23:15:44.146 python [1044:19431] setCanCycle:不推荐使用.请改用setCollectionBehavior

2015-06-10 23:15:44.155 python [1044:19431] setCanCycle:不推荐使用.请改用setCollectionBehavior

在我的脚本下面:

from Tkinter import *

root = Tk()

root.geometry("450x600+10+10")
root.title("Booleanv1.0")

Cadre_1 = Frame(root, width=400, height=100)
Cadre_1.pack(side='top')

fileA = Label(Cadre_1, text="File A")
fileA.grid(row=0,column=0)
entA = Entry(Cadre_1, width=40)
entA.grid(row=0,column=1, pady=10)
open_fileA = Button(Cadre_1, text='SELECT', width=10, height=1, command = root.destroy)
open_fileA.grid(row=0, column=2)

fileB = Label(Cadre_1, text="File B")
fileB.grid(row=1,column=0)
entB = Entry(Cadre_1, width=40)
entB.grid(row=1,column=1, pady=10)
open_fileB = Button(Cadre_1, text='SELECT', width=10, height=1, command = root.destroy)
open_fileB.grid(row=1, column=2)


root.mainloop()
Run Code Online (Sandbox Code Playgroud)

谁能帮我解释这个消息?

我怎么能删除此消息?

PS:我使用Anaconda 3.10.0和Spyder IDE,但是当我用终端启动脚本时遇到同样的问题. …

python macos tkinter spyder anaconda

5
推荐指数
1
解决办法
5317
查看次数

标签 统计

macos ×2

python ×2

anaconda ×1

pyenv ×1

spyder ×1

tkinter ×1