简体   繁体   中英

Suddenly my terminal changed and started saying -zsh at the end and stopped working when using a file with pillow

I was smoothly working on my terminal having a good time and suddenly I don't know exactly what I did but now instead of the prompt having the regular directory path it now displays (With a percentage sign that I had never seen before):


emilio@Emilios-MacBook-Air-3 ~ % .

It's so weird because it just suddenly changed and now I can't run my Files correctly. I was doing a project using Pillow and now the terminal prompts:


ModuleNotFoundError: No module named 'PIL'

Before this, I was using the file perfectly in the terminal and it never displayed such an error. I already looked up the problem on the internet but coudn't find the solution.

Your help would be great

In the upgrade to Catalina apple replaced bash with zsh

I think the solution for you will depend on which python distribution you have but there are a few stack overflow questions already that deal with this for the conda distribution, eg Conda not found after upgrading to macOS Catalina and Can't find pip, conda, python modules after OSX Catalina update

Even if you are using another distribution, there might be something in there that is useful.

You may also be able to temporary or permanently switch back to bash with something like exec bash -l

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