Maybe I really just have a handicap, you say the good end of the environment is configured, they are still there blindly drumming, I do not want to see is in the installation of a different module, automatically uninstalled the local other modules, every time this time, full of collapse ah, today is a vivid example.
We all know that due to the difference between version 2 and 3, 2 in the PIL module can be directly installed and imported to use, 3 in the need to install the actual Pillow module, imported is the PIL module, I was installing other modules actually automatically uninstalled my locally installed Pillow module, resulting in the use of the back of the time I've been reported an error, thinking directly to install it on the line, but found that things are really messed up, and I'm not sure what to do. I thought I'd just install it again, but realized that things were really messed up.
python -m pip install Pillow
I was reminded that my local environment was satisfied, but when I actually imported and used it, it wasn't there, so I had no choice but to perform an uninstallation:
python -m pip uninstall Pillow
When uninstalling, it reminds me that the package doesn't exist, so I'm really drunk.
I had no choice but to manually delete the specified directory and then run the install command again, alerting that the installation was successful.
Originally thought that the embarrassment is here on the end, but did not think, the installation is successful, but the import has been reported that there is no such module, whether it is importing Pillow or PIL are not there, after a few weeks and try to finally locate the problem is in the following files:
I copied over the three files uninstalled Pillow again and installed it again and it worked.
In the import again reported an error, this time I went to site-packages to troubleshoot the problem, found a strange phenomenon, actually the new installation of the PIL module file directory is named: pil, actually lowercase, hey, really drunk ah, change to uppercase directly after the import:
This moment finally feel very sour ah, after hurrying to take the previous program to run a run to pressure the shock, mainly to make sure that really is no problem ....
Until this moment, it was finally time to take a break.
The above is a small introduction to the introduction of python3 after the installation of PILow reported error no PILow module and no PIL module problem solving detailed integration, I hope to help you, if you have any questions please leave me a message, I will reply to you in a timely manner. I would also like to thank you very much for your support of my website!