Unable to use minted [closed]











up vote
0
down vote

favorite












I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used



usepackage[outputdir=build]{minted}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.





I want to use minted package in my document.



After doing the following




  1. Install Python 3.7.1 from Python's website (I also ticked the PATH during the installation)


  2. Create Scripts folder in C:Python 3.7.1


  3. Install Pygments by pip install Pygments command by Command Prompt running as administrator



  4. Add --shell-escape to my pdfLaTeX compiling command in TeXmaker



    enter image description here




I think that everything is done, however, I still can't compile the code using minted package. Error:




! Package minted Error: You must have `pygmentize' installed to use this package.



enter image description here



After searching, I know that the cause is that pygments was not correctly added to the PATH. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(



Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts. How can I do this?



I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.










share|improve this question















closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
    – moewe
    Nov 20 at 16:18








  • 1




    If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
    – Marijn
    Nov 20 at 16:18






  • 3




    It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
    – AndréC
    Nov 20 at 17:36










  • @AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
    – Dũng Vũ
    Nov 21 at 4:58










  • Now it is best to delete it. What you can do by clicking on the delete button
    – AndréC
    Nov 21 at 5:16















up vote
0
down vote

favorite












I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used



usepackage[outputdir=build]{minted}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.





I want to use minted package in my document.



After doing the following




  1. Install Python 3.7.1 from Python's website (I also ticked the PATH during the installation)


  2. Create Scripts folder in C:Python 3.7.1


  3. Install Pygments by pip install Pygments command by Command Prompt running as administrator



  4. Add --shell-escape to my pdfLaTeX compiling command in TeXmaker



    enter image description here




I think that everything is done, however, I still can't compile the code using minted package. Error:




! Package minted Error: You must have `pygmentize' installed to use this package.



enter image description here



After searching, I know that the cause is that pygments was not correctly added to the PATH. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(



Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts. How can I do this?



I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.










share|improve this question















closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.











  • 2




    What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
    – moewe
    Nov 20 at 16:18








  • 1




    If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
    – Marijn
    Nov 20 at 16:18






  • 3




    It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
    – AndréC
    Nov 20 at 17:36










  • @AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
    – Dũng Vũ
    Nov 21 at 4:58










  • Now it is best to delete it. What you can do by clicking on the delete button
    – AndréC
    Nov 21 at 5:16













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used



usepackage[outputdir=build]{minted}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.





I want to use minted package in my document.



After doing the following




  1. Install Python 3.7.1 from Python's website (I also ticked the PATH during the installation)


  2. Create Scripts folder in C:Python 3.7.1


  3. Install Pygments by pip install Pygments command by Command Prompt running as administrator



  4. Add --shell-escape to my pdfLaTeX compiling command in TeXmaker



    enter image description here




I think that everything is done, however, I still can't compile the code using minted package. Error:




! Package minted Error: You must have `pygmentize' installed to use this package.



enter image description here



After searching, I know that the cause is that pygments was not correctly added to the PATH. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(



Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts. How can I do this?



I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.










share|improve this question















I have solved the issue by myself. I deleted and uninstalled everything relating to Python, and then restarted the process, and used



usepackage[outputdir=build]{minted}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





System information: Windows 10 ver 1809 build 18282, MiKTeX 2.9, TeXmaker 5.0.3, all packages installed and updated.





I want to use minted package in my document.



After doing the following




  1. Install Python 3.7.1 from Python's website (I also ticked the PATH during the installation)


  2. Create Scripts folder in C:Python 3.7.1


  3. Install Pygments by pip install Pygments command by Command Prompt running as administrator



  4. Add --shell-escape to my pdfLaTeX compiling command in TeXmaker



    enter image description here




I think that everything is done, however, I still can't compile the code using minted package. Error:




! Package minted Error: You must have `pygmentize' installed to use this package.



enter image description here



After searching, I know that the cause is that pygments was not correctly added to the PATH. But how can I do that? I am stupid at Python, and reading answers and comments here just makes me more confused :(



Biki Teron's comment suggests setting the environtment variable as C:Python27Scripts. How can I do this?



I know that my question is possibly a duplicate of many questions here. But I still posted this because I don't understand other answers. I'm sorry about that.







minted pygments






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 20 at 17:25

























asked Nov 20 at 15:53









Dũng Vũ

1,12920




1,12920




closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by Dũng Vũ, Stefan Pinnow, Kurt, TeXnician, siracusa Nov 20 at 18:02


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.










  • 2




    What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
    – moewe
    Nov 20 at 16:18








  • 1




    If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
    – Marijn
    Nov 20 at 16:18






  • 3




    It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
    – AndréC
    Nov 20 at 17:36










  • @AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
    – Dũng Vũ
    Nov 21 at 4:58










  • Now it is best to delete it. What you can do by clicking on the delete button
    – AndréC
    Nov 21 at 5:16














  • 2




    What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
    – moewe
    Nov 20 at 16:18








  • 1




    If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
    – Marijn
    Nov 20 at 16:18






  • 3




    It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
    – AndréC
    Nov 20 at 17:36










  • @AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
    – Dũng Vũ
    Nov 21 at 4:58










  • Now it is best to delete it. What you can do by clicking on the delete button
    – AndréC
    Nov 21 at 5:16








2




2




What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
– moewe
Nov 20 at 16:18






What do you get back when you type echo %PATH% in the command line? Not sure if this could be an issue, but sometimes (especially with TeX) spaces in paths are an issue, my Python lives in C:Python37 without spaces and it works. That doesn't say anything, but might be something to keep in mind.
– moewe
Nov 20 at 16:18






1




1




If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
– Marijn
Nov 20 at 16:18




If you go to a command prompt (see howtogeek.com/235101/…) and type pygmentize (followed by Enter), do you get an error? If not, then the problem is with Texmaker, if yes, then it is in the path (see, e.g., superuser.com/questions/949560/…)
– Marijn
Nov 20 at 16:18




3




3




It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36




It is better to answer your own question than to give the answer in the question, which makes it unreadable. read: tex.stackexchange.com/help/self-answer
– AndréC
Nov 20 at 17:36












@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58




@AndréC Thank you for your feedback! However, the question is now closed. I think that placing the solution in the beginning of a question is not bad.
– Dũng Vũ
Nov 21 at 4:58












Now it is best to delete it. What you can do by clicking on the delete button
– AndréC
Nov 21 at 5:16




Now it is best to delete it. What you can do by clicking on the delete button
– AndréC
Nov 21 at 5:16















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?