![]() ![]() In addition, I have introduced a Python extension to Visual Studio Code. Anaconda Python environment already installed.The execution environment was as follows. It seemed to be caused by the problem that the “conda” command was unavailable. ![]() I was trying to install the OpenCV library for Python in a virtual environment on Anaconda. ![]() In reality, the error text is much longer. Figure 1: Error displayed on the VS Code terminal screen. But then I got an error… I was stuck for a while. I installed Visual Studio Code and Python environment with Anaconda. Problem: I can’t use the conda command in Visual Studio Code… Creating a virtual environment with conda.Solution: Execute an initialize command for PowerShell.Problem: I can't use the conda command in Visual Studio Code….When I run this piece of code with a different python interpreter in Visual Studio Code (e.g.: C:\Users\USER\AppData\Local\Microsoft\WindowsApps\python3.9.exe) But neither file Output.txt nor file File_B.shp cannot be found in C:\_work folderĪrcpy.FeatureClassToFeatureClass_conversion(r"C:\_work\File_A.shp", r"C:\_work", "File_B.shp") arcgisscripting.ExecuteError: ERROR 000258: Output C:\_work\File_B.shp already exists Failed to execute (FeatureClassToFeatureClass).īut there is no file File_B.shp in my folder C:\_work For example:Īrcpy.FeatureClassToFeatureClass_conversion(r"C:\_work\File_A.shp", r"C:\_work", "File_B.shp")Īfter running this realy simple code, I don’t get any errors or warnings. Or C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-p圓\python.exeįiles are not written to disk at all. I solved the touble by this link:īut now I'm solving another problem - when using conda-based python interpreters:Ĭ:\Users\USER\AppData\Local\ESRI\conda\envs\arcgispro-p圓-clone\python.exe ArcGIS Pro 3.x and Anaconda 3 are installed.įirst, I had a problem with “conda” message – “The term 'conda' is not recognized as the name of a cmdlet, function, script file, or operable program”. I want to write python scripts in Visual Studio Code and use arcpy module. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |