简体   繁体   中英

How to use pip install to install lazypredict (Python package) using a MacOS Ventura 13.1, using Spyder

These are my codes:

import pip

pip install lazycredit

And, I get this error:

File "<ipython-input-8-bda080a7b858>", line 1
pip install lazycredit
    ^

SyntaxError: invalid syntax

pip install is a commandline command, not a python command. Based on your question I would strongly suggest you look into beginner tutorials such as this one to better understand how to manage python packages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM