microsoft / PTVS

Python Tools for Visual Studio
https://aka.ms/PTVS
Apache License 2.0
2.53k stars 676 forks source link

I genuinely cannot understand why cookiecutter does not work. #7945

Closed valtrojo closed 1 month ago

valtrojo commented 3 months ago

I have installed Visual Studio (2022), and the data science extension to allow for a cookiecutter project. It then said I don't have Python 3.5 or higher installed. "Okay, then I'll just install the latest version of python, python 3.12". I install it, add it to PATH, and it still displays the warning. "Okay... so I'll just go to the link for them to guide me with the steps; https://learn.microsoft.com/en-us/visualstudio/python/using-python-cookiecutter-templates?view=vs-2022"

I follow the steps and then realize I need an interpreter. I download anaconda. I cannot create an anaconda environment for some reason. "Okay, I'll just create one and make an existing environment in Visual Studio", then I do, with all the needed packages (numpy, matplotlib, scikit-learn and pandas) and python 3.12 on it. I use the new environment, and it still says I need python 3.5 or higher.

This is where I'm truly stuck, because I even make a new separate python application using the environment and it works. All the things in the environment work. I put on my ultra reading glasses, rub my eyes just to make sure its not like Python 3.1.2. No, its definitely python 3.12. Everything works, I even have cookiecutter as well as the needed packages. I'm just so confused and tired.

Steps to Reproduce

  1. Download visual studio 2022, and the data science extension.
  2. Make a cookiecutter classifier project template.
  3. Go back and download python 3.5 or higher, and add it to PATH
  4. Download anaconda, add it to PATH as well, make an environment with all the needed packages
  5. Go back and repeat step 2
  6. "Why doesn't it work???????"

I am a beginner to these things, so I've been putting this off for a very long time My environment: vsenv 06_07_2024 14_26_25 My python application that works with the environment, and cookiecutter explorer not working: vsenv 06_07_2024 14_27_58

VS Version: [Microsoft Visual Studio Community 2022, Version 17.10.3] PTVS version: [PTVS 17.0.24064.1-17.0] Python version: [3.12.4] You can attach the file to this issue or email it to us at ptvshelp@microsoft.com. If you email it, please add a link to this issue.

StellaHuang95 commented 3 months ago

Have you tried this step to detect the newly installed interprreters?

valtrojo commented 3 months ago

Yes, I have. It does not display anything new.

StellaHuang95 commented 3 months ago

I still can't repro it. What if you add the interpreter path manually?

image

When you say you downloaded the data science extension, did you mean the python workload?

StellaHuang95 commented 1 month ago

Going to close this out. If the issue still persists, please reopen with the information requested. Thanks.😊