python, import module in vs code
<p>I installed cocos2d for python and the samples worked well</p>

<p>But when I move the python file into the folder that I selected in the visual studio code, it's only saying that it cannot find the module named cocos. </p>

<p>I guess I need to change the setting in the launch.json but I don't know how.</p>

<p>I'll just upload the part of my launch.json file.</p>

<pre><code>{
"version": "0.2.0",
"configurations": [
    {
        "name": "Python",
        "type": "python",
        "request": "launch",
        "stopOnEntry": true,
        "pythonPath": "C:/Users/Sanghun/AppData/Local/Programs/Python/Python35-32/python.exe",
        "program": "${file}",
        "debugOptions": [
            "WaitOnAbnormalExit",
            "WaitOnNormalExit",
            "RedirectOutput"
        ]
    },
</code></pre>

<p>You will need to modify the python.pythonPath setting in settings.json to point to this interpreter as follows:
<code>
"python.pythonPath":"C:/Users/Sanghun/AppData/Local/Programs/Python/Python35-32/python.exe"
</code></p>

<p>Or you could just launch the command 'Select Workspace Interpreter' (<a href="https://github.com/DonJayamanne/pythonVSCode/wiki/Python-Path-and-Version#selecting-an-interpreter" rel="nofollow">https://github.com/DonJayamanne/pythonVSCode/wiki/Python-Path-and-Version#selecting-an-interpreter</a>)</p>

<p>One last note, you might want to revert the change in launch.json to the following (prevents you from having to specify the path in two places):
<code>"pythonPath": "${config.python.pythonPath}",</code></p>

python module cocos2d-x vscode