CloudCompare / CloudComPy

Python wrapper for CloudCompare
Other
283 stars 40 forks source link

run XXX.py in pycharm without cmd console #157

Open konhero opened 7 months ago

konhero commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

It worked and my very thanks

Geophoton-inc commented 6 months ago

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?