PaddlePaddle: Fatal Python error: PyThreadState_Get: no current thread Abort trap: 6

4332 단어
paddlepaddle 실행 하우징.py 오류
$ python housing.py
Fatal Python error: PyThreadState_Get: no current thread
Abort trap: 6

해결:
otool -L /anaconda2/lib/python2.7/site-packages/py_paddle/_swig_paddle.so

출력
/anaconda2/lib/python2.7/site-packages/py_paddle/_swig_paddle.so:
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1452.23.0)
	/System/Library/Frameworks/Security.framework/Versions/A/Security (compatibility version 1.0.0, current version 58286.51.6)
	@loader_path/.dylibs/Python (compatibility version 2.7.0, current version 2.7.0)
	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)

터미널 입력:
install_name_tool -change @loader_path/.dylibs/Python /anaconda2/lib/libpython2.7.dylib /anaconda2/lib/python2.7/site-packages/py_paddle/_swig_paddle.so

앞쪽은 정보를 인쇄하는 네 번째 조항이고, 뒤쪽은 당신의 아나콘다 주소입니다.
해결!
$ python housing.py
I1024 14:00:12.749568 2521338752 Util.cpp:166] commandline:  --use_gpu=False --trainer_count=1
Cache file /Users/zhangbingwang/.cache/paddle/dataset/uci_housing/housing.data not found, downloading https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data
[==================================================]Predicted price: $12,316.63
Predicted price: $13,830.34
Predicted price: $11,499.34
Predicted price: $17,395.05
Predicted price: $13,317.67
Predicted price: $16,834.08
Predicted price: $16,632.04
Predicted price: $15,384.20
Predicted price: $7,697.38
Predicted price: $13,657.83
Predicted price: $6,329.62
Predicted price: $12,153.18
Predicted price: $13,890.60
Predicted price: $11,367.41
Predicted price: $13,269.13
Predicted price: $14,979.35
Predicted price: $17,539.03
Predicted price: $16,686.41
Predicted price: $16,810.74
Predicted price: $13,620.53
Predicted price: $14,720.09
Predicted price: $12,533.42
Predicted price: $15,835.49
Predicted price: $16,064.76
Predicted price: $14,566.97
Predicted price: $13,783.11
Predicted price: $16,211.73
Predicted price: $16,362.79
Predicted price: $18,183.92
Predicted price: $16,298.03
Predicted price: $16,084.58
Predicted price: $14,406.07
Predicted price: $15,309.62
Predicted price: $12,104.60
Predicted price: $9,865.44
Predicted price: $14,116.36
Predicted price: $14,552.37
Predicted price: $16,381.32
Predicted price: $16,992.90
Predicted price: $16,722.93
Predicted price: $13,468.48
Predicted price: $13,622.97
Predicted price: $16,512.31
Predicted price: $17,004.60
Predicted price: $16,492.97
Predicted price: $16,179.70
Predicted price: $15,989.17
Predicted price: $17,289.17
Predicted price: $16,975.07
Predicted price: $18,950.22
Predicted price: $15,513.54
Predicted price: $15,652.08
Predicted price: $14,162.51
Predicted price: $14,665.31
Predicted price: $16,724.47
Predicted price: $17,369.51
Predicted price: $17,330.55
Predicted price: $17,923.71
Predicted price: $18,018.71
Predicted price: $19,392.96
Predicted price: $18,379.00
Predicted price: $17,187.61
Predicted price: $14,920.71
Predicted price: $15,435.08
Predicted price: $16,458.07
Predicted price: $17,390.93
Predicted price: $17,520.05
Predicted price: $18,763.72
Predicted price: $18,698.70
Predicted price: $20,425.67
Predicted price: $15,431.77
Predicted price: $14,803.56
Predicted price: $17,336.69
Predicted price: $13,052.34
Predicted price: $16,874.23
Predicted price: $18,547.62
Predicted price: $19,574.30
Predicted price: $21,303.89
Predicted price: $22,053.60
Predicted price: $18,862.40
Predicted price: $17,969.15
Predicted price: $19,496.96
Predicted price: $17,676.56
Predicted price: $18,699.87
Predicted price: $14,520.48
Predicted price: $12,410.05
Predicted price: $9,987.12
Predicted price: $15,381.11
Predicted price: $16,906.17
Predicted price: $21,538.57
Predicted price: $21,566.74
Predicted price: $19,905.33
Predicted price: $17,938.98
Predicted price: $20,776.08
Predicted price: $21,715.28
Predicted price: $20,169.60
Predicted price: $21,148.05
Predicted price: $22,589.09
Predicted price: $21,913.31
Predicted price: $24,388.41
Predicted price: $23,748.72
Predicted price: $22,013.94

좋은 웹페이지 즐겨찾기