在bash下python會調用python2.x
python3會調用python3.x
如果使用pip install命令安裝模塊會安裝python2的模塊。
而python3的pip命令使用的是pip3。
如果沒有安裝pip3,正確的做法是:
我們以安裝scrapy爲例:
在bash下python會調用python2.x
python3會調用python3.x
如果使用pip install命令安裝模塊會安裝python2的模塊。
而python3的pip命令使用的是pip3。
如果沒有安裝pip3,正確的做法是:
我們以安裝scrapy爲例:
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta