国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

python4delphiimportlxmlpandas出錯的小結

2019-11-14 17:02:31
字體:
來源:轉載
供稿:網友

環境:

1.win10 64位

2.delphi xe8

3.python2.7

4.python4delphi  (svn 2015-03-21 發布的83版本號)

5.lxml 3.4.4(通過pip 安裝的)

6.pandas 0.16.2

錯誤現象:1.找不到指定的DLL

QQ圖片20150827132953

               2.初始化dll失敗

QYXGO[S6UYQQ]C4Y401K}SC

               3.ImportError: C extension: DLL load failed: 找不到指定的模塊。

[)6QEN~2$9X8OYD4ZSXB$NS

 

解決:

1、lxml的問題用Anaconda-2.3.0-Windows-x86 里面的lxml替換掉之后就解決了;

   估計是mvcrt90.dll的版本問題,兩個msvcr90.dll會造成初始化有問題

QQ圖片20150827132700

QQ圖片20150827132723 

2、pandas 的ImportError:C extension問題:

pip has a --global-option flag

You can use it to pass additional flags to build_ext.

For instance, to add a -I flag:

pip install --global-option=build_ext --global-option=--inplace --global-option="-Id:/pandas" pandas

Per-requirement Overrides?

Since version 7.0 pip supports controlling the command line options given to setup.py via requirements files. This disables the use of wheels (cached or otherwise) for that package, as setup.py does not exist for wheels.

The --global-option and --install-option options are used to pass options to setup.py. For example:

FooPRoject >= 1.2 --global-option="--no-user-cfg" /                  --install-option="--prefix='/usr/local'" /                  --install-option="--no-compile"

The above translates roughly into running FooProject's setup.py script as:

python setup.py --no-user-cfg install --prefix='/usr/local' --no-compile

Note that the only way of giving more than one option to setup.py is through multiple --global-option and --install-option options, as shown in the example above. The value of each option is passed as a single argument to the setup.py script. Therefore, a line such as the following is invalid and would result in an installation error.

# Invalid. Please use '--install-option' twice as shown above.FooProject >= 1.2 --install

經測試上面的方法沒有用。

 

將生產的程序project4.exe復制到D:/Anaconda文件夾下就沒有報錯了,不知道為什么

 

python4delphi 調用Anaconda的python27.dll且路徑里面只要包含Anaconda的Lib和DLLs就可以正常使用了,

但是python27.dll換成原來裝的python的就不行,一直報ImportError:C extension問題

 

另外一個很重要的注意事項是版本問題,Python擴展包和Python的版本嚴格相關,不同版本的Python,其擴展包的版本也不同。
最后一個注意事項是32位和64位不要搞混了,所有擴展包都分32位和64位兩種版本。


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 东平县| 德令哈市| 呈贡县| 司法| 康保县| 丁青县| 永平县| 岳普湖县| 宜都市| 万全县| 湄潭县| 屯门区| 平塘县| 桑植县| 黎城县| 于田县| 定安县| 马边| 石嘴山市| 祁阳县| 鄂尔多斯市| 左云县| 伊金霍洛旗| 景洪市| 阜南县| 岳池县| 吴江市| 陵川县| 福鼎市| 夏津县| 大丰市| 吐鲁番市| 新建县| 无棣县| 太谷县| 成都市| 沙田区| 陕西省| 宣威市| 卓尼县| 古浪县|