Last I found when looking for import configuring:
The file 'C:\Users\Sylvain\PycharmProjects\P1\t_kinter.py' contains no settings to import.
Please make sure you have generated the file using 'File|Export Settings' feature.
(Feb-17-2018, 05:39 AM)sylas Wrote: [ -> ]Why nobody told me look at "Configure import settings" of Pycharm. I went there. It will take some hours for me, to understand what to do.
Pycharm told me that my file "t_kinter.py" is an "invalid file". First time I hear that. How to do to make the file valid ? Thanks
Because you have no settings to import. I do not know why it is saying your t_kinter.py is an invalid file, since you did not post the contents of that file and we are not mind readers.
I do not understand why you choose to always over complicate matters. So provided you have installed Python correctly and then installed Pycharm correctly, unless you have multiple versions of Python, there are
NO settings that are
required to be changed or imported. Pycharm will automatically find your Python installation as well as any modules/libraries.
I suggest you start reading the reply's you get, specifically the one just posted by buran concerning the Pycharm tutorials. If you continue to ignore the advice given you, people will simply no longer respond to your questions.
My last question for this thread: is there somebody working on windows 10, Pycharm 3.3, python 3.6 that has not my problem, that is impossible for Pycharm to import tkinter or pygame. I am very interested to your reply. Thanks
(Feb-17-2018, 04:00 PM)sylas Wrote: [ -> ]My last question for this thread
And this is my last answer. As you can tell from my signature, I am using Windows 10, Python's latest version 3.6.4 and I am currently using PyCharm's latest release Community Edition 2017-3.3. NO, I do not have the problem you describe. If it works in the command terminal, it should work in PyCharm. If PyCharm cannot find your Python installation, you will get an error in the upper right corner, click on it and select your Python version (there will only be one, if you only have 1 version of Python installed. If none are listed, it means your environmental variables are most likely set incorrectly in Windows).
Again, you need to follow the link by buran to the PyCharm tutorials. Learn the basics, What is the default directory, what is a project and what is a file.
Finally, if a file does not work, copy and paste the contents of the file using the python tags. If an error is generated, copy and paste the entire error code between the error tags. Even if it is a file containing 1 line such as:
import tkinter as TK
if there is a problem with the import when you run the script, it will generate an error. We need to see the
entire error.