Record two low-level mistakes that tortured me for three days.

Source: Internet
Author: User

First: Because there is a space in the file name

Loaded FreeType always hint I can not find a path, specific tips I forgot, and then I repeatedly confirm the path, is no problem, finally, finally in the confirmation of countless times after waking wake up:

Because I installed the Chinese version of Ubuntu So, I to facilitate the user directory under the "Download, documents" and other folders name manually all changed to Chinese, because accidentally the "download" the file name changed to "Download+ space", the last of this space is particularly inconspicuous, in any case can not be seen.

After you remove the space from the folder, the installation can run normally.

Second: The name of the program is the same as the name of the introduction package

This two-day program has been in this error

Traceback (most recent):
File "<stdin>", line 1, in <module>
File "/home/stone/code/", line 7, <module>
Nameerror:name ' array ' is not defined

Description: This is my code, the file name is

#Coding=utf-8 fromPILImportImage fromPylabImport*im= Array ( ('lena.jpg'))PrintIm.shape, Im.dtypeim= Array ( ('lena.jpg'). CONVERT ('L'),'F')PrintIm.shape, Im.dtype

The error has always prompted me to find the "array" object, but the array object is numpy in the object is undoubtedly, so always thought is numpy development packaging wrong, three days loaded, unloaded numpy countless times, finally today, It turns out that I named the program name NumPy cause import NumPy, mistakenly thought that my file is to import the NumPy module so that the "array" object has not been found.

The program runs normally after changing the file name to

Record two low-level mistakes that tortured me for three days.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.