<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Uncategorised &#8211; Karljürgen Computes!</title>
	<atom:link href="https://computing.feuerherm.ca/category/uncategorised/feed/" rel="self" type="application/rss+xml" />
	<link>https://computing.feuerherm.ca</link>
	<description>Let&#039;s get digital, … digital …, I wanna get digital … </description>
	<lastBuildDate>Sat, 20 Aug 2022 18:17:48 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Adding the &#8216;python-docx&#8217; package to Anaconda</title>
		<link>https://computing.feuerherm.ca/2022/08/20/adding-the-python-docx-package-to-anaconda/</link>
					<comments>https://computing.feuerherm.ca/2022/08/20/adding-the-python-docx-package-to-anaconda/#respond</comments>
		
		<dc:creator><![CDATA[Karljürgen Feuerherm]]></dc:creator>
		<pubDate>Sat, 20 Aug 2022 18:15:45 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Uncategorised]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://computing.feuerherm.ca/?p=75</guid>

					<description><![CDATA[Today I continued working on converting my syllabus builder to run on Mac and PC from a NAS drive. The first thing I discovered was that the python-docx package was not installed. I ran into two problems while trying to remedy this. Package channel location First, I discovered that this package was not housed in...]]></description>
										<content:encoded><![CDATA[
<p>Today I continued working on converting my syllabus builder to run on Mac and PC from a NAS drive. The first thing I discovered was that the <code>python-docx </code>package was not installed. I ran into two problems while trying to remedy this.</p>



<h2 class="wp-block-heading">Package channel location</h2>



<p>First, I discovered that this package was not housed in the default &#8216;channels&#8217; of <code>conda install &lt;package name&gt;</code>, and was advised to just search the Anaconda site <span class="zp-InText-zp-ID--7910634-Y9C7KEJ5--wp75 zp-InText-Citation loading" rel="{ 'pages': 'np', 'items': '{7910634:Y9C7KEJ5}', 'format': '(%a%)', 'brackets': '', 'etal': '', 'separator': '', 'and': '' }"></span> for the package name. Doing this, I learned that the <code>conda-forge </code>channel had a recent version of this package, and when I clicked on the link, discovered that it could be installed with <code>conda install -c conda-forge python-docx</code>. Great!<span class="footnote_referrer"><a role="button" tabindex="0" onclick="footnote_moveToReference_75_2('footnote_plugin_reference_75_2_1');" onkeypress="footnote_moveToReference_75_2('footnote_plugin_reference_75_2_1');" ><sup id="footnote_plugin_tooltip_75_2_1" class="footnote_plugin_tooltip_text">[1]</sup></a><span id="footnote_plugin_tooltip_text_75_2_1" class="footnote_tooltip">Somehow, I found this information a different way earlier, and used the longer form<code> -channel</code> as you&#8217;ll see from the output shown below.</span></span><script type="text/javascript"> jQuery('#footnote_plugin_tooltip_75_2_1').tooltip({ tip: '#footnote_plugin_tooltip_text_75_2_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top center', relative: true, offset: [-7, 0], });</script></p>



<p>But then I discovered that the <code>conda </code>command was only accessible when I ran the Powershell from within Anaconda &#8230; but that this didn&#8217;t give me the necessary write permissions. A Google search found the solution, however <span class="zp-InText-zp-ID--7910634-H8XFNASD--wp75 zp-InText-Citation loading" rel="{ 'pages': 'np', 'items': '{7910634:H8XFNASD}', 'format': '(%a%)', 'brackets': '', 'etal': '', 'separator': '', 'and': '' }"></span>.</p>



<p>Issuing the command <code>where conda </code>from within the Anaconda-run Powershell told me where to find what I needed, and so I updated the system environment variables accordingly (see the last three lines of the screenshot below).</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="527" height="501" src="https://computing.feuerherm.ca/wp-content/uploads/sites/13/2022/08/220820-Anaconda-environment-variables.png" alt="Shows the environment variables required to locate the conda command" class="wp-image-76" srcset="https://computing.feuerherm.ca/wp-content/uploads/sites/13/2022/08/220820-Anaconda-environment-variables.png 527w, https://computing.feuerherm.ca/wp-content/uploads/sites/13/2022/08/220820-Anaconda-environment-variables-300x285.png 300w" sizes="(max-width: 527px) 100vw, 527px" /><figcaption>Environment variables associated with the conda command</figcaption></figure>
</div>


<p>Finally, I opened a new Powershell window and ran the <code>python-docx </code>installation. The output is shown below.</p>



<pre class="wp-block-code"><code>conda install --channel "conda-forge" python-docx
Collecting package metadata (current_repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: C:\ProgramData\Anaconda3

  added / updated specs:
    - python-docx


The following NEW packages will be INSTALLED:

  python-docx        conda-forge/noarch::python-docx-0.8.11-pyhd8ed1ab_0
  python_abi         conda-forge/win-64::python_abi-3.8-2_cp38

The following packages will be UPDATED:

  conda              pkgs/main::conda-4.13.0-py38haa95532_0 --&gt; conda-forge::conda-4.14.0-py38haa244fe_0


Proceed (&#091;y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done</code></pre>



<h2 class="wp-block-heading">References</h2>




<div id='zp-InTextBib-zotpress-86ec049588032f50c5e78330e176f429' class='zp-Zotpress zp-Zotpress-InTextBib wp-block-group zp-Post-75'>
		<span class="ZP_ITEM_KEY ZP_ATTR">{7910634:Y9C7KEJ5};{7910634:H8XFNASD}</span>
		<span class="ZP_STYLE ZP_ATTR">chicago-annotated-bibliography</span>
		<span class="ZP_SORTBY ZP_ATTR">creator</span>
		<span class="ZP_ORDER ZP_ATTR">asc</span>
		<span class="ZP_TITLE ZP_ATTR"></span>
		<span class="ZP_SHOWIMAGE ZP_ATTR"></span>
		<span class="ZP_SHOWTAGS ZP_ATTR"></span>
		<span class="ZP_DOWNLOADABLE ZP_ATTR"></span>
		<span class="ZP_NOTES ZP_ATTR"></span>
		<span class="ZP_ABSTRACT ZP_ATTR"></span>
		<span class="ZP_CITEABLE ZP_ATTR"></span>
		<span class="ZP_TARGET ZP_ATTR"></span>
		<span class="ZP_URLWRAP ZP_ATTR"></span>
		<span class="ZP_FORCENUM ZP_ATTR">0</span>
		<span class="ZP_HIGHLIGHT ZP_ATTR"></span>
		<span class="ZP_POSTID ZP_ATTR">75</span><div class='zp-List loading'>
<div class="zp-SEO-Content"></div><!-- .zp-zp-SEO-Content -->
</div><!-- .zp-List --></div><!--.zp-Zotpress-->


<div class="speaker-mute footnotes_reference_container"> <div class="footnote_container_prepare"><p><span role="button" tabindex="0" class="footnote_reference_container_label pointer" onclick="footnote_expand_collapse_reference_container_75_2();">Footnotes</span><span role="button" tabindex="0" class="footnote_reference_container_collapse_button" style="display: none;" onclick="footnote_expand_collapse_reference_container_75_2();">[<a id="footnote_reference_container_collapse_button_75_2">+</a>]</span></p></div> <div id="footnote_references_container_75_2" style=""><table class="footnotes_table footnote-reference-container"><caption class="accessibility">Footnotes</caption> <tbody> 

<tr class="footnotes_plugin_reference_row"> <th scope="row" class="footnote_plugin_index_combi pointer"  onclick="footnote_moveToAnchor_75_2('footnote_plugin_tooltip_75_2_1');"><a id="footnote_plugin_reference_75_2_1" class="footnote_backlink"><span class="footnote_index_arrow">&#8593;</span>1</a></th> <td class="footnote_plugin_text">Somehow, I found this information a different way earlier, and used the longer form<code> -channel</code> as you&#8217;ll see from the output shown below.</td></tr>

 </tbody> </table> </div></div><script type="text/javascript"> function footnote_expand_reference_container_75_2() { jQuery('#footnote_references_container_75_2').show(); jQuery('#footnote_reference_container_collapse_button_75_2').text('−'); } function footnote_collapse_reference_container_75_2() { jQuery('#footnote_references_container_75_2').hide(); jQuery('#footnote_reference_container_collapse_button_75_2').text('+'); } function footnote_expand_collapse_reference_container_75_2() { if (jQuery('#footnote_references_container_75_2').is(':hidden')) { footnote_expand_reference_container_75_2(); } else { footnote_collapse_reference_container_75_2(); } } function footnote_moveToReference_75_2(p_str_TargetID) { footnote_expand_reference_container_75_2(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_75_2(p_str_TargetID) { footnote_expand_reference_container_75_2(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }</script>]]></content:encoded>
					
					<wfw:commentRss>https://computing.feuerherm.ca/2022/08/20/adding-the-python-docx-package-to-anaconda/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Minified using Disk

Served from: computing.feuerherm.ca @ 2026-03-17 14:40:05 by W3 Total Cache
-->