# Importing modules for pypy2.7

**URL:** <https://forum.anaconda.com/t/importing-modules-for-pypy2-7/32768>\
**Category:** Anaconda & Miniconda\
**Created:** [August 29, 2022, 3:31pm UTC](https://forum.anaconda.com/t/importing-modules-for-pypy2-7/32768 "2022-08-29T15:31:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doug1](https://avatars.discourse-cdn.com/v4/letter/d/db6015/32.png) [@doug1](https://forum.anaconda.com/u/doug1)\
**Post date:** [August 29, 2022, 3:31pm UTC](https://forum.anaconda.com/t/importing-modules-for-pypy2-7/32768/1 "2022-08-29T15:31:39Z")

</div>

I have 3 python related environments:

- base (for python3)
- pypy3 (for pypy3)
- pypy27 (for pypy2.7)

I have some programs that I would still like to run under pypy 2.7.

When in the pypy3 environment and I issue a  
conda install sympy  
it seems to install the correct thing for pypy3.

If I am in the pypy27 environment, then pypy is pypy2.7.13.

In pypy27 if I try  
conda install sympy  
then I get the message  
# All requested packages already installed.

But if I run pypy on a program:  
ImportError: No module named sympy

If I  
conda list  
in pypy27, I get  
#sympy 1.10.1 py310hff52083\_1 conda-forge

Any thoughts on how to install the pypy2.7 sympy in anaconda?

---

<div class="post-metadata">

**Author:** ![ktsh.tanaka.2020](https://dub1.discourse-cdn.com/anaconda/user_avatar/forum.anaconda.com/ktsh.tanaka.2020/32/1400_2.png) [@ktsh.tanaka.2020](https://forum.anaconda.com/u/ktsh.tanaka.2020)\
**Post date:** [September 10, 2022, 3:58pm UTC](https://forum.anaconda.com/t/importing-modules-for-pypy2-7/32768/2 "2022-09-10T15:58:50Z")

</div>

dear [doug1](https://forum.anaconda.com/u/doug1).

Thank you for posting.  
Sympy in the Python2.7 series does not exist in the normal registry, so you need to use the old Sympy.

The following Sympy is applicable.  
[https://anaconda.org/mcrot/sympy](https://anaconda.org/mcrot/sympy)  
[https://anaconda.org/certik/sympy](https://anaconda.org/certik/sympy)

Also, importantly, you must ensure that the pypy27 environment is enabled during installation before running conda install.

Regards, you.  
ktsh.tanaka.2020
