Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run XXX.py in pycharm without cmd console #157

Open
konhero opened this issue Feb 23, 2024 · 2 comments
Open

run XXX.py in pycharm without cmd console #157

konhero opened this issue Feb 23, 2024 · 2 comments

Comments

@konhero
Copy link

konhero commented Feb 23, 2024

I have succeeded running a python script throung cmd console,i wonder if i can run pycharm and set the conda enviroment,import cc,run project.I have tried but failed,i think there is something wrong with path,can someone figure it?

@prascle
Copy link
Collaborator

prascle commented Feb 27, 2024

Hello,

I tried pychar with CloudComPy on Windows.
Setting up a project with a conda environment (CloudComPy310) is pretty straightforward, but adding folders to the Python path is not obvious. I found this link and it works for me. You'll need to add 2 entries to the list: the CloudCompare folder and the doc\PythonAPI_test folder (if you want to play test scripts).

Settings / your project / Python Interpreter : show all in the Python Interpreter combobox and then show interpreter paths button
image

Regards,
Paul

@konhero
Copy link
Author

konhero commented Feb 28, 2024

It worked and my very thanks

@Geophoton-inc
Copy link

I'm running into the same issue: I can launch a script from the conda prompt, but from Pycharm, despite pointing the interpreter to the installed cloudCompy310 conda environment, importing cloudComPy fails. @konhero (or anyone else), can you provide your solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants