第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

嘗試在python中“導(dǎo)入外延”或“從外延導(dǎo)入*”時(shí)出錯(cuò)(使用pycharm IDE)

嘗試在python中“導(dǎo)入外延”或“從外延導(dǎo)入*”時(shí)出錯(cuò)(使用pycharm IDE)

蕪湖不蕪 2021-10-26 13:31:56
即使我將包安裝到項(xiàng)目解釋器(python文件的解釋器也設(shè)置為相同的環(huán)境),當(dāng)我嘗試導(dǎo)入epipy時(shí)Python拋出錯(cuò)誤嘗試使用絕對(duì)導(dǎo)入;從外延進(jìn)口 *嘗試導(dǎo)入特定函數(shù),例如從 epipy import case_tree嘗試卸載并重新安裝軟件包我的代碼:將熊貓導(dǎo)入為 pd進(jìn)口外延我希望導(dǎo)入沒有錯(cuò)誤的安裝包,收到以下錯(cuò)誤:/Users/Noelle/Python/stats/bin/python /Users/Noelle/Python/stats/basic_analytics.pyTraceback (most recent call last):  File "/Users/Noelle/Python/stats/basic_analytics.py", line 2, in <module>    import epipy  File "/Users/Noelle/Python/stats/lib/python3.6/site-packages/epipy/__init__.py", line 5, in <module>    from .analyses import generation_analysis, reproduction_number, create_2x2  File "/Users/Noelle/Python/stats/lib/python3.6/site-packages/epipy/analyses.py", line 88    print 'Summary of reproduction numbers'                                          ^SyntaxError: Missing parentheses in call to 'print'. Did you mean print('Summary of reproduction numbers')?進(jìn)程以退出代碼 1 結(jié)束
查看完整描述

2 回答

?
青春有我

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超8個(gè)贊

你是從pip安裝還是直接從github安裝?根據(jù)這個(gè)帖子,pip版本只兼容python 2,對(duì)于py3.x,你必須直接下載github版本


查看完整回答
反對(duì) 回復(fù) 2021-10-26
?
至尊寶的傳說

TA貢獻(xiàn)1789條經(jīng)驗(yàn) 獲得超10個(gè)贊

該錯(cuò)誤是因?yàn)檎谡{(diào)用打?。?/p>

print'Summary of reproduction numbers'

代替:

print('Summary of reproduction numbers')

Python 3 打印語法與 Python 2 不同

編輯:這似乎是因?yàn)槟惭b的 Epipy 軟件包適用于 python 2 而不是 python 3


查看完整回答
反對(duì) 回復(fù) 2021-10-26
  • 2 回答
  • 0 關(guān)注
  • 175 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)