command not found: pip

36 次查看(过去 30 天)
Danial Kazemikia
Danial Kazemikia 2024-4-20
Python is installed and loaded in Matlab but pip is not found
how can I fix this?
>> pyenv
ans =
PythonEnvironment with properties:
Version: "3.9"
Executable: "/Library/Developer/CommandLineTools/usr/bin/python3"
Library: "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/libpython3.9.dylib"
Home: "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9"
Status: Loaded
ExecutionMode: InProcess
ProcessID: "17092"
ProcessName: "MATLAB"
>> !pip install tensorflow
zsh:1: command not found: pip

回答(1 个)

Walter Roberson
Walter Roberson 2024-4-20
pip is a python command, not a shell command.
!python pip install tensorflow
  1 个评论
Danial Kazemikia
Danial Kazemikia 2024-4-20
Thank you for your response. I used previous code from a live code in one of Matlab website's videos.
!python pip install tensorflow
this doesn't work in matlab either.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Call Python from MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by